5
# Required-Start: $remote_fs $syslog
6
# Required-Stop: $remote_fs $syslog
7
# Default-Start: 2 3 4 5
9
# Short-Description: process and login accounting
10
# Description: GNU Accounting Utilities is a set of utilities which
11
# reports and summarizes data about user connect times and
12
# process execution statistics.
15
PATH=/sbin:/bin:/usr/sbin:/usr/bin
16
DAEMON=/usr/sbin/accton
18
DESC="process accounting"
20
test -x $DAEMON || exit 0
22
# Include acct defaults if available
23
if [ -f /etc/default/acct ]
35
if [ "${ACCT_ENABLE}" = "1" ]
38
# Have to turn this on to be able to test the return code
41
echo -n "Starting $DESC: "
42
/usr/sbin/accton /var/log/account/pacct 2>/dev/null
51
echo "Process accounting not available on this system."
55
echo "Process accounting already running on this system."
57
logger -p daemon.err "Unexpected error code $rv received in /etc/init.d/acct"
66
echo -n "Stopping $DESC: "
68
# Have to turn this on to be able to test the return code
71
/usr/sbin/accton off 2>/dev/null
78
echo "Process accounting not available on this system."
92
echo "Usage: $N {start|stop|restart|force-reload}" >&2