SOURCES: smokeping.init - use checkconfig

blues blues at pld-linux.org
Thu Oct 25 21:32:00 CEST 2007


Author: blues                        Date: Thu Oct 25 19:32:00 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- use checkconfig

---- Files affected:
SOURCES:
   smokeping.init (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SOURCES/smokeping.init
diff -u SOURCES/smokeping.init:1.3 SOURCES/smokeping.init:1.4
--- SOURCES/smokeping.init:1.3	Thu Oct 25 21:25:41 2007
+++ SOURCES/smokeping.init	Thu Oct 25 21:31:55 2007
@@ -22,6 +22,10 @@
 	exit 0
 fi
 
+checkconfig() {
+	/usr/sbin/smokeping --check || exit 1
+}
+
 start() {
 	if [ ! -f /var/lock/subsys/smokeping ]; then
 		msg_starting smokeping
@@ -52,12 +56,14 @@
   	stop
 	;;
   restart|reload)
+  	checkconfig
 	stop
 	start
 	exit $?
 	;;
   status)
 	status smokeping
+	checkconfig
 	exit $?
 	;;
   *)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/smokeping.init?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list