Author: glen                         Date: Mon Sep  4 15:15:38 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- leave trace of service status in lock/subsys
- ntpdate is always there or rpm is broken

---- Files affected:
SOURCES:
   ntp-client.init (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/ntp-client.init
diff -u SOURCES/ntp-client.init:1.4 SOURCES/ntp-client.init:1.5
--- SOURCES/ntp-client.init:1.4 Sun Dec  4 02:00:27 2005
+++ SOURCES/ntp-client.init     Mon Sep  4 17:15:32 2006
@@ -24,8 +24,6 @@
        exit 0
 fi
 
-[ -x /usr/sbin/ntpdate ] || exit 0
-
 RETVAL=0
 # See how we were called.
 case "$1" in
@@ -37,8 +35,10 @@
        show "Syncing time with ntpdate (backgrounding)"
        daemon --fork /usr/sbin/ntpdate -s $NTPDATE_OPTIONS $NTPDATE_SERVERS
        RETVAL=$?
+       [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ntp
        ;;
 stop)
+       rm -f /var/lock/subsys/ntp
        exit $RETVAL
        ;;
 restart|force-reload)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/ntp-client.init?r1=1.4&r2=1.5&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to