Can "Kill -HUP" Be Used Instead Of "Refresh" Or "Imsimta Reload"?
Last updated on APRIL 25, 2018
Applies to:Oracle Communications Messaging Server - Version 8.0.1 and later
Information in this document applies to any platform.
Instead of performing a "refresh" or "imsimta reload", can I just do a "kill -HUP" to restart the Messaging Server services?
Here is some background information as to why we are looking for this:
The "refresh" and "imsimta reload" commands require they be run as root.
Our automation tool does everything by way of "sudo."
So the automation tool runs as "imsadmin" (the mailsrv userid we use) but it does so by first logging in to the target system (ssh) as the person executing the tool and then does a sudo to imsadmin to do each command.
It can do the following:
* be the user running the tool
* sudo to imsadmin
* sudo as imsadmin to become root
* do something as root (from imsadmin (from original user))
The direct/normal alternative would be to run the tool "as root" instead of "as imsadmin". But, we don't have the root password.
But, we can do kill -HUP on whatever processes we like, as imsadmin.
On our frontend systems, we run everything via SMF. we could use SMF "refresh" to do this. But then it refreshes everything.
On the backend systems, it is under VCS. The only option there is to restart the whole thing, which is way overkill.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms