From 0a1566f7cb644a0bc21415e485aa7d4c12e8a67a Mon Sep 17 00:00:00 2001 From: Ivana Varekova Date: Wed, 16 Sep 2009 07:20:45 +0000 Subject: [PATCH] - fix init script (#521195) --- psacct.init | 14 +++++++++----- psacct.spec | 5 ++++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/psacct.init b/psacct.init index 0625db4..642e808 100755 --- a/psacct.init +++ b/psacct.init @@ -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 diff --git a/psacct.spec b/psacct.spec index 762cba1..1a86a1d 100644 --- a/psacct.spec +++ b/psacct.spec @@ -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 - 6.2.3-55 +- fix init script (#521195) + * Sun Jul 26 2009 Fedora Release Engineering - 6.3.2-54 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild