rpms/anacron/devel anacron.init,1.6,1.7 anacron.spec,1.32,1.33

Marcela Mašláňová (mmaslano) fedora-extras-commits at redhat.com
Wed Jul 11 15:12:40 UTC 2007


Author: mmaslano

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

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



Index: anacron.init
===================================================================
RCS file: /cvs/pkgs/rpms/anacron/devel/anacron.init,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- anacron.init	14 Apr 2006 00:49:54 -0000	1.6
+++ anacron.init	11 Jul 2007 15:12:06 -0000	1.7
@@ -19,7 +19,8 @@
 #        The anacron binary now creates its own /var/run/anacron.pid pid file
 #        and /var/lock/subsys lock files, and removes them automatically at exit,
 #        so at least there will be no more "anacron is dead but subsys locked" 
-#        messages.
+#        messages. The pid and lock is existing only, when anacron is running
+#	 (only when cron wake anacron up).
 #
 
 start() {
@@ -30,23 +31,20 @@
 	failure;
     fi;
     echo
-    return $RETVAL
 }
 
 stop() {
     echo -n $"Stopping $prog: "
     if [ -f $PIDFILE ]; then
-	killproc anacron
+	killproc $ANACRON
 	RETVAL=$?
 	if [ $RETVAL -ne 0 ]; then 
 	    failure;
 	fi;
     else
-	RETVAL=1
 	failure;
     fi
     echo
-    return $RETVAL
 }
 
 case "$1" in
@@ -59,7 +57,10 @@
 	    ;;
 	
 	status)
+	    ## anacron's status is always stopped, because anacron sleep, until 
+	    ## cron wake him
 	    status anacron
+	    RETVAL=1
 	    ;;
 
 	restart)


Index: anacron.spec
===================================================================
RCS file: /cvs/pkgs/rpms/anacron/devel/anacron.spec,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- anacron.spec	6 Feb 2007 14:38:47 -0000	1.32
+++ anacron.spec	11 Jul 2007 15:12:06 -0000	1.33
@@ -19,6 +19,7 @@
 #Patch8: anacron-2.3-memoryleak.patch
 Patch9: anacron-2.3-pic.patch
 Patch10: anacron-2.3-memleaking.patch
+
 Requires: /bin/sh
 Requires: crontabs
 Requires: initscripts
@@ -134,6 +135,9 @@
 %attr(755,root,root) %dir /etc/cron.weekly/0anacron
 
 %changelog
+* Wed Jul 11 2007 Marcela Maslanova <mmaslano at redhat.com> 2.3-48
+- changes in init script (not build)
+
 * Tue Feb  6 2007 Marcela Maslanova <mmaslano at redhat.com> 2.3-47
 - thanks for review from Jef Spaleta
 - rhbz#225247, rhbz#211309




More information about the scm-commits mailing list