Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37384716
en ru br
ALT Linux repos
S:6.6.4-alt1
5.0: 6.4-alt0.5
4.1: 6.4-alt0.5
4.0: 6.4-alt0.4
3.0: 6.3.5-alt5

Other repositories
Upstream:6.3.2

Group :: Monitoring
RPM: acct

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#!/bin/sh
#
# acct This script takes care of starting and stopping process accounting.
#
#
# chkconfig: - 05 95
# description: Accouting can provide a system administrator \
# with useful information about system usage -- connections, \
# programs executed, and utilization of system resources.

# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1

# Source function library.
. /etc/init.d/functions

LOCKFILE=/var/lock/subsys/acct
RETVAL=0

# See how we were called.
case "$1" in
start|reload|restart)
acct-mklog pacct
action "Turning on process accounting:" accton /var/account/pacct
RETVAL=$?
[ $RETVAL -eq 0 ] && touch "$LOCKFILE"
;;
stop)
action "Turning off process accounting:" accton off
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f "$LOCKFILE"
;;
status|condrestart|condstop)
;;
*)
msg_usage "${0##*/} {start|stop}"
RETVAL=1
esac

exit $RETVAL
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin