SOURCES: daemontools.init - report svstat output in status action

glen glen at pld-linux.org
Mon May 5 21:35:07 CEST 2008


Author: glen                         Date: Mon May  5 19:35:07 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- report svstat output in status action

---- Files affected:
SOURCES:
   daemontools.init (1.17 -> 1.18) 

---- Diffs:

================================================================
Index: SOURCES/daemontools.init
diff -u SOURCES/daemontools.init:1.17 SOURCES/daemontools.init:1.18
--- SOURCES/daemontools.init:1.17	Sun Apr 27 02:33:58 2008
+++ SOURCES/daemontools.init	Mon May  5 21:35:02 2008
@@ -96,7 +96,9 @@
 	;;
   status)
 	status svscan
-	exit $?
+	RETVAL=$?
+	svstat $SVSCAN_DIR/*
+	RETVAL=$(($RETVAL + $?))
 	;;
   *)
 	msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/daemontools.init?r1=1.17&r2=1.18&f=u



More information about the pld-cvs-commit mailing list