SOURCES: ntp.init, ntp.sysconfig - let pass arguments to ntpd invo...

agaran agaran at pld-linux.org
Thu Aug 23 10:14:41 CEST 2007


Author: agaran                       Date: Thu Aug 23 08:14:41 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- let pass arguments to ntpd invocation without modifying start script manually

---- Files affected:
SOURCES:
   ntp.init (1.18 -> 1.19) , ntp.sysconfig (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/ntp.init
diff -u SOURCES/ntp.init:1.18 SOURCES/ntp.init:1.19
--- SOURCES/ntp.init:1.18	Mon Sep  4 17:16:07 2006
+++ SOURCES/ntp.init	Thu Aug 23 10:14:36 2007
@@ -34,7 +34,7 @@
 	# Check if the service is already running?
 	if [ ! -f /var/lock/subsys/ntpd ]; then
 		msg_starting ntpd
-		daemon ntpd -c /etc/ntp/ntp.conf
+		daemon ntpd -c /etc/ntp/ntp.conf $NTPD_OPTIONS
 		RETVAL=$?
 		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/ntpd
 	else

================================================================
Index: SOURCES/ntp.sysconfig
diff -u SOURCES/ntp.sysconfig:1.4 SOURCES/ntp.sysconfig:1.5
--- SOURCES/ntp.sysconfig:1.4	Fri Mar  5 12:47:32 2004
+++ SOURCES/ntp.sysconfig	Thu Aug 23 10:14:36 2007
@@ -2,3 +2,7 @@
 
 # Define services nice level
 SERVICE_RUN_NICE_LEVEL="+1"
+
+
+# pass additional arguments (like -g)
+NTPD_OPTIONS=""
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/ntp.init?r1=1.18&r2=1.19&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/ntp.sysconfig?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list