SOURCES: ntp.init - add conditionalrestart which dhcpcd calls inte...
glen
glen at pld-linux.org
Mon Aug 27 21:05:04 CEST 2007
Author: glen Date: Mon Aug 27 19:05:04 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- add conditionalrestart which dhcpcd calls internally
---- Files affected:
SOURCES:
ntp.init (1.20 -> 1.21)
---- Diffs:
================================================================
Index: SOURCES/ntp.init
diff -u SOURCES/ntp.init:1.20 SOURCES/ntp.init:1.21
--- SOURCES/ntp.init:1.20 Mon Aug 27 21:02:43 2007
+++ SOURCES/ntp.init Mon Aug 27 21:04:58 2007
@@ -66,6 +66,13 @@
stop
start
;;
+ conditionalrestart)
+ # 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}"
exit 3
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/ntp.init?r1=1.20&r2=1.21&f=u
More information about the pld-cvs-commit
mailing list