2727896
--- apcupsd-3.14.1/platforms/redhat/apcupsd.in.init	2007-04-23 17:35:33.000000000 -0600
2727896
+++ apcupsd-3.14.1/platforms/redhat/apcupsd.in	2007-08-02 09:05:48.000000000 -0600
2727896
@@ -3,7 +3,7 @@
2727896
 # apcupsd      This shell script takes care of starting and stopping
2727896
 #	       the apcupsd UPS monitoring daemon.
2727896
 #
2727896
-# chkconfig: 2345 60 99
2727896
+# chkconfig: - 60 99
2727896
 # description: apcupsd monitors power and takes action if necessary
2727896
 #
2727896
 APCPID=@PIDDIR@/apcupsd.pid
2727896
@@ -44,9 +44,11 @@
2727896
        ;;
2727896
     restart|force-reload)
2727896
        $0 stop
2727896
-       sleep 15
2727896
        $0 start
2727896
        ;;
2727896
+    condrestart)
2727896
+       [ -f /var/lock/subsys/ypbind ] && $0 restart || :
2727896
+       ;;
2727896
     reload)
2727896
        echo "$0: reload not implemented"
2727896
        exit 3
2727896
@@ -62,7 +64,7 @@
2727896
        fi
2727896
        ;;
2727896
     *)
2727896
-       echo "Usage: $0 {start|stop|restart|status}"
2727896
+       echo "Usage: $0 {start|stop|restart|condrestart|status}"
2727896
        exit 1
2727896
        ;;
2727896
 esac