SOURCES: monit.init - wait for monit quit command to terminate pro...

glen glen at pld-linux.org
Mon Feb 5 18:05:17 CET 2007


Author: glen                         Date: Mon Feb  5 17:05:17 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- wait for monit quit command to terminate process as sending command is immediate regardless did it succeeds -- resolves when restart just kills monit :/

---- Files affected:
SOURCES:
   monit.init (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SOURCES/monit.init
diff -u SOURCES/monit.init:1.12 SOURCES/monit.init:1.13
--- SOURCES/monit.init:1.12	Mon Feb  5 12:59:42 2007
+++ SOURCES/monit.init	Mon Feb  5 18:05:12 2007
@@ -28,7 +28,7 @@
 	# Stop daemons.
 	if [ -f /var/lock/subsys/monit ]; then
 		msg_stopping monit
-		daemon monit -c /etc/monitrc quit
+		daemon --waitforname monit --waitfortime 10 monit -c /etc/monitrc quit
 		rm -f /var/lock/subsys/monit > /dev/null 2>&1
 	else
 		msg_not_running monit
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/monit.init?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list