- fix init script (#521195)

This commit is contained in:
Ivana Varekova 2009-09-16 07:20:45 +00:00
parent 88615baa68
commit 0a1566f7cb
2 changed files with 13 additions and 6 deletions

View File

@ -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

View File

@ -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@redhat.com> - 6.2.3-55
- fix init script (#521195)
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.3.2-54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild