/usr/lib/acct/startup
/usr/lib/acct/shutacct
The first line starts process accounting during the system startup process; the second stops it before the system is brought down.
0 4 * * 1-6 if /etc/chkconfig acct; then /usr/lib/acct/runacct 2> /var/adm/acct/nite/fd2log; fi
5 * * * 1-6 if /etc/chkconfig acct; then /usr/lib/acct/ckpacct; fi
Note that the above cron commands appear on one line in the source file. The following command, which is also all on one line in the source file, should be in /var/spool/cron/crontabs/root:
0 2 * * 4 if /etc/chkconfig acct; then /usr/lib/acct/dodisk > /var/adm/acct/nite/disklog; fi
0 5 1 * * if /etc/chkconfig acct; then /usr/lib/acct/monacct; fi
The above command is all on one line in the source file, and takes advantage of the default action of monacct that uses the current month's date as the suffix for the file names. Notice that the entry is executed when runacct has sufficient time to complete. This will, on the first day of each month, create monthly accounting files with the entire month's data.
PATH=/usr/lib/acct:/bin:/usr/bin
chkconfig acct on
and
/usr/lib/acct/startup