The psacct service is responsible for starting and stopping process accounting at system boot time and at system shutdown. This service is a wrapper that invokes the action accounting control program.
Service Control
To obtain the psacct service, install the psacct RPM package:
# yum install psacct
To manage the psacct service for automated service start and stop, use the chkconfig tool:
# chkconfig psacct on
# chkconfig --list psacct psacct 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# /sbin/chkconfig psacct off
To control the psacct service immediately, use the service tool:
# service psacct Usage: /etc/init.d/psacct {start|stop|status|restart|reload}
The table below describes all available commands for the psacct service:
Command | Description |
---|---|
start | Start the accton application to begin process accounting. |
stop | Invoke the accton application to discontinue process accounting. |
status | Display a message saying whether or not process accounting is active. |
restart | Equivalent to a stop and then a start command sequence. |
reload | Equivalent to a stop and then a start command sequence. |
Service Configuration
The psacct service has no configuration file and cannot be customized.