rpms/anacron/devel anacron.init,1.10,1.11

Marcela Mašláňová (mmaslano) fedora-extras-commits at redhat.com
Tue Aug 14 10:31:48 UTC 2007


Author: mmaslano

Update of /cvs/pkgs/rpms/anacron/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv27261

Modified Files:
	anacron.init 
Log Message:
Change in init script.



Index: anacron.init
===================================================================
RCS file: /cvs/pkgs/rpms/anacron/devel/anacron.init,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- anacron.init	13 Aug 2007 08:43:48 -0000	1.10
+++ anacron.init	14 Aug 2007 10:31:16 -0000	1.11
@@ -66,9 +66,8 @@
 	    ;;
 	
 	status)
-	    ## anacron's status is always stopped, because anacron sleep, until 
-	    ## cron wake him
-	    status $PIDFILE
+	    ## hard to say - anacron is up only when cron wake him
+	    status $prog
 	    RETVAL=$?
 	    ;;
 
@@ -78,14 +77,15 @@
 	    ;;
 
 	condrestart)
-		if [ -f $LOCKFILE ]; then
+		if [ -f /var/lock/subsys/anacron ]; then
 			stop
+			sleep 3
 			start
 		fi
 		;;
 
 	*)
-	    echo $"Usage: $0 {start|stop|restart|status}"
+	    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
 	    RETVAL=3
 
 esac




More information about the scm-commits mailing list