On 2007-01-26, at 0943, Rejaine Monteiro wrote:
When I try to stop/start qmail-send with:
svc -d /service/qmail-send /service/qmail-send/log
svc -u /service/qmail-send /service/qmail-send/log
or
qmailctl stop
qmailctl stop
or using qmail-rocks scripts:
/etc/rc.d/qmail stop
/etc/rc.d/qmail start
I get these errors in my log:
@4000000040f2fea1241870bc alert: cannot start: qmail-send is
already running
What ' s wrong?
you're probably not waiting for qmail-send to stop.
"svc -d" just sends a signal to qmail-send, asking it to stop. when
it receives this signal, qmail-send stops scheduling new deliveries,
and then waits for all currently in-process deliveries to finish.
once all of the deliveries are done, qmail-send will shut itself down
gracefully.
if you have a situation where you absolutely must stop qmail-send
immediately, you should follow your "svc -d" command with something
like "killall qmail-remote ; killall qmail-local ; sleep 5". however
this is a very drastic step and should only be done in an emergency
situation (i.e. if the queue is corrupted and you need to stop qmail-
send so you can fix it or rescue the data before any further damage
is done.) normally you should wait until you see the "status:
exiting" message in the log before starting it back up.
----------------------------------------------------------------
| John M. Simpson --- KG4ZOW --- Programmer At Large |
| http://www.jms1.net/ <jms1@jms1.net> |
----------------------------------------------------------------
| http://video.google.com/videoplay?docid=-4312730277175242198 |
----------------------------------------------------------------
PGP.sig
Description: This is a digitally signed message part
|