SOURCES: ntp.init, openntpd.init - use condrestart, suggested by q...

glen glen at pld-linux.org
Mon Aug 27 22:25:01 CEST 2007


Author: glen                         Date: Mon Aug 27 20:25:01 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- use condrestart, suggested by qboosh

---- Files affected:
SOURCES:
   ntp.init (1.21 -> 1.22) , openntpd.init (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SOURCES/ntp.init
diff -u SOURCES/ntp.init:1.21 SOURCES/ntp.init:1.22
--- SOURCES/ntp.init:1.21	Mon Aug 27 21:04:58 2007
+++ SOURCES/ntp.init	Mon Aug 27 22:24:55 2007
@@ -66,7 +66,7 @@
 	stop
 	start
 	;;
-  conditionalrestart)
+  condrestart)
 	# NB! don't remove: dhcpcd calls this
 	if [ -f /var/lock/subsys/ntpd ]; then
 		stop
@@ -74,7 +74,7 @@
 	fi
   	;;
   *)
-	msg_usage "$0 {start|stop|restart|force-reload|status}"
+	msg_usage "$0 {start|stop|restart|force-reload|condrestart|status}"
 	exit 3
 esac
 

================================================================
Index: SOURCES/openntpd.init
diff -u SOURCES/openntpd.init:1.7 SOURCES/openntpd.init:1.8
--- SOURCES/openntpd.init:1.7	Mon Aug 27 21:51:40 2007
+++ SOURCES/openntpd.init	Mon Aug 27 22:24:56 2007
@@ -64,8 +64,15 @@
 	stop
 	start
 	;;
+  condrestart)
+	# NB! don't remove: dhcpcd calls this
+	if [ -f /var/lock/subsys/ntpd ]; then
+		stop
+		start
+	fi
+  	;;
   *)
-	msg_usage "$0 {start|stop|restart|force-reload|status}"
+	msg_usage "$0 {start|stop|restart|force-reload|condrestart|status}"
 	exit 3
 esac
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/ntp.init?r1=1.21&r2=1.22&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/openntpd.init?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list