Package: monit
Version: 1:4.7-0bpo1
Severity: normal
/etc/init.d/monit restart sometimes fails to start the daemon again, typically
producing:
# /etc/init.d/monit restart
Stopping daemon monitor: monit.
Starting daemon monitor: monit#
This appears to be simply because the 'stop' action doesn't actually wait for
the daemon to stop; 'restart' sleeps for 1 second between stopping & starting,
but this isn't always long enough - even on my currently-unloaded 2.4ghz server.
There are no error messages in the logs or other odd symptoms. Running
'/etc/init.d/monit stop && sleep 1 && ps -C monit' does regularly show the
monit process in memory, confirming that it isn't shutting down fast enough.
As a quick fix, adding --retry 5 to the start-stop-daemon options works for me.
The 'sleep 1' hack in 'restart' can (and should) then be removed.
Although I'm using the 4.7 backport on the system I'm interested in, the file
in 4.8 has the same problem.
Thanks,
Will
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.16-1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages monit depends on:
ii libc6 2.3.2.ds1-22sarge3 GNU C Library: Shared libraries an
ii libssl0.9.7 0.9.7e-3sarge1 SSL shared libraries
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]