Harry Putnam <[EMAIL PROTECTED]> wrote:
>Is there a one move handy way to restart qmail?
If you install "Life with qmail"'s "qmail" script--which uses DJB's
daemontools--restarting qmail is done by:
qmail restart
The complete set of commands is:
stop -- stops mail service (smtp connections refused, nothing goes out)
start -- starts mail service (smtp connection accepted, mail can go out)
pause -- temporarily stops mail service (connections accepted, nothing leaves)
cont -- continues paused mail service
stat -- displays status of mail service
cdb -- rebuild the tcpcontrol cdb file for smtp
restart -- stops and restarts smtp, sends qmail-send a TERM & restarts it
doqueue -- sends qmail-send ALRM, scheduling queued messages for delivery
reload -- sends qmail-send HUP, rereading locals and virtualdomains
queue -- shows status of queue
alrm -- same as doqueue
hup -- same as reload
>I've been calling `ps waux |grep qmail', then `kill -9' on qmails pid then
>calling (using bash) `/var/qmail/rc &' (From the doc/INSTALL
>document).
>
>Seems a little cumbersom.
Yeah, and dangerous, too. A plain "kill" (no -9) on the qmail-send
process is much safer.
-Dave