rpms/psacct/devel psacct.init,1.6,1.7 psacct.spec,1.38,1.39

Ivana Varekova varekova at fedoraproject.org
Wed Sep 16 07:20:51 UTC 2009


Author: varekova

Update of /cvs/pkgs/rpms/psacct/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14331

Modified Files:
	psacct.init psacct.spec 
Log Message:
 - fix init script (#521195)



Index: psacct.init
===================================================================
RCS file: /cvs/pkgs/rpms/psacct/devel/psacct.init,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -r1.6 -r1.7
--- psacct.init	25 Jul 2007 07:30:12 -0000	1.6
+++ psacct.init	16 Sep 2009 07:20:44 -0000	1.7
@@ -8,6 +8,10 @@
 # description:  Starts and stops process accounting
 # short-description:  Starts and stops process accounting
 
+### BEGIN INIT INFO
+# Description: Starts and stops process accounting
+# Short-Description: Starts and stops process accounting
+### END INIT INFO
 
 # Source function library.
 . /etc/init.d/functions
@@ -24,10 +28,10 @@ start() {
     	    if [ $RETVAL -eq 0 ]; then
 		touch $LOCKFILE
 	    else 
-		exit 3
+		exit 7
 	    fi
 	else 
-	    exit 1
+	    exit 4
 	fi
 }
 
@@ -37,9 +41,9 @@ stop() {
 	RETVAL=$?
 	if [ $RETVAL -eq 0 ]; then
 	    rm -f $LOCKFILE
-	    exit 3
-	else 
 	    exit 0
+	else
+	    exit 1
 	fi
 }
 
@@ -67,7 +71,7 @@ case "$1" in
 	# do not advertise unreasonable commands that there is no reason
 	# to use with this device
 	echo $"Usage: $0 {start|stop|status|restart|reload}"
-	exit 1
+	exit 2
 esac
 
 exit 0


Index: psacct.spec
===================================================================
RCS file: /cvs/pkgs/rpms/psacct/devel/psacct.spec,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -p -r1.38 -r1.39
--- psacct.spec	26 Jul 2009 19:32:25 -0000	1.38
+++ psacct.spec	16 Sep 2009 07:20:45 -0000	1.39
@@ -12,7 +12,7 @@
 Summary: Utilities for monitoring process activities
 Name: psacct
 Version: 6.3.2
-Release: 54%{?dist}
+Release: 55%{?dist}
 License: GPLv2+
 Group: Applications/System
 Source: ftp://ftp.gnu.org/pub/gnu/acct-6.3.2.tar.gz
@@ -174,6 +174,9 @@ fi
 %{_infodir}/accounting.info.gz
 
 %changelog
+* Wed Sep 16 2009 Ivana Varekova <varekova at redhat.com> - 6.2.3-55
+- fix init script (#521195)
+
 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6.3.2-54
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the scm-commits mailing list