- fix init script (#521195)
This commit is contained in:
parent
88615baa68
commit
0a1566f7cb
14
psacct.init
14
psacct.init
@ -8,6 +8,10 @@
|
|||||||
# description: Starts and stops process accounting
|
# description: Starts and stops process accounting
|
||||||
# short-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.
|
# Source function library.
|
||||||
. /etc/init.d/functions
|
. /etc/init.d/functions
|
||||||
@ -24,10 +28,10 @@ start() {
|
|||||||
if [ $RETVAL -eq 0 ]; then
|
if [ $RETVAL -eq 0 ]; then
|
||||||
touch $LOCKFILE
|
touch $LOCKFILE
|
||||||
else
|
else
|
||||||
exit 3
|
exit 7
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
exit 1
|
exit 4
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,9 +41,9 @@ stop() {
|
|||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
if [ $RETVAL -eq 0 ]; then
|
if [ $RETVAL -eq 0 ]; then
|
||||||
rm -f $LOCKFILE
|
rm -f $LOCKFILE
|
||||||
exit 3
|
|
||||||
else
|
|
||||||
exit 0
|
exit 0
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,7 +71,7 @@ case "$1" in
|
|||||||
# do not advertise unreasonable commands that there is no reason
|
# do not advertise unreasonable commands that there is no reason
|
||||||
# to use with this device
|
# to use with this device
|
||||||
echo $"Usage: $0 {start|stop|status|restart|reload}"
|
echo $"Usage: $0 {start|stop|status|restart|reload}"
|
||||||
exit 1
|
exit 2
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
Summary: Utilities for monitoring process activities
|
Summary: Utilities for monitoring process activities
|
||||||
Name: psacct
|
Name: psacct
|
||||||
Version: 6.3.2
|
Version: 6.3.2
|
||||||
Release: 54%{?dist}
|
Release: 55%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Source: ftp://ftp.gnu.org/pub/gnu/acct-6.3.2.tar.gz
|
Source: ftp://ftp.gnu.org/pub/gnu/acct-6.3.2.tar.gz
|
||||||
@ -174,6 +174,9 @@ fi
|
|||||||
%{_infodir}/accounting.info.gz
|
%{_infodir}/accounting.info.gz
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user