Hello Jason,
On Tue, Jun 11, 2013 at 10:13 PM, Jason A. Donenfeld <[email protected]>wrote:
>
> But shutting down -- smtpctl? Or is this the same as sending SIGTERM
> to the master process? What's the best way to handle this?
>
Agree with Gilles ("it is completely safe to kill it with a signal"), and
`smtpctl stop` also works flawlessly.
On Linux, you'd better not to do it by hand. You can use initscript to
perform all these operation in more convenient way.
I don't know about all the cases, but on RH-based system
`/etc/init.d/functions` provides `killproc()` function for this purpose.
Calling "killproc yourdaemon" you send SIGTERM to the process, and then
SIGKILL if it doesn't answer in appropriate time.
---
wbr, Denis.