rpms/anacron/devel anacron.init,1.9,1.10 anacron.spec,1.35,1.36

Marcela Mašláňová (mmaslano) fedora-extras-commits at redhat.com
Mon Aug 13 08:44:20 UTC 2007


Author: mmaslano

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

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



Index: anacron.init
===================================================================
RCS file: /cvs/pkgs/rpms/anacron/devel/anacron.init,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- anacron.init	9 Aug 2007 13:25:22 -0000	1.9
+++ anacron.init	13 Aug 2007 08:43:48 -0000	1.10
@@ -45,7 +45,7 @@
 stop() {
     echo -n $"Stopping $prog: "
     if [ -f $PIDFILE ]; then
-	killproc $ANACRON
+	killproc anacron
 	RETVAL=$?
 	if [ $RETVAL -ne 0 ]; then 
 	    failure;
@@ -77,6 +77,13 @@
 	    start
 	    ;;
 
+	condrestart)
+		if [ -f $LOCKFILE ]; then
+			stop
+			start
+		fi
+		;;
+
 	*)
 	    echo $"Usage: $0 {start|stop|restart|status}"
 	    RETVAL=3


Index: anacron.spec
===================================================================
RCS file: /cvs/pkgs/rpms/anacron/devel/anacron.spec,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- anacron.spec	9 Aug 2007 13:25:22 -0000	1.35
+++ anacron.spec	13 Aug 2007 08:43:48 -0000	1.36
@@ -1,7 +1,7 @@
 Summary: A cron-like program that can run jobs lost during downtime
 Name: anacron
 Version: 2.3
-Release: 49%{?dist}
+Release: 50%{?dist}
 License: GPL
 Group: System Environment/Base
 URL: http://packages.debian.org/stable/source/anacron
@@ -81,13 +81,13 @@
 
 %preun
 if [ "$1" = "0" ]; then
-	service anacron stop >/dev/null 2>&1
+	service anacron stop >/dev/null 2>&1 ||:
 	/sbin/chkconfig --del anacron
 fi
 
 %postun
 if [ "$1" -ge "1" ]; then
-	service anacron condrestart >/dev/null 2>&1
+	service anacron condrestart >/dev/null 2>&1 ||:
 fi
 
 %files
@@ -104,10 +104,14 @@
 %attr(755,root,root) %dir /etc/cron.weekly/0anacron
 
 %changelog
+* Mon Aug 13 2007 Marcela Maslanova <mmaslano at redhat.com> 2.3-50
+- rewrite typo in init script
+- Resolves: rhbz#251757
+
 * Wed Aug 08 2007 Marcela Maslanova <mmaslano at redhat.com> 2.3-49
 - adopt some patches from upstream for better locking
 - add own changes, which resolve problem with two or more run of
-  cron.daily.
+  cron.daily per day.
 - Resolves: #157448
 
 * Wed Jul 11 2007 Marcela Maslanova <mmaslano at redhat.com> 2.3-48




More information about the fedora-extras-commits mailing list