Installation guide

The following example shows part of a /usr/spool/cron/crontabs/adm
file that includes accounting commands and shell scripts:
0 2 * * 1-6 /usr/sbin/acct/runacct > /usr/adm/acct/nite/fd2log&
5****/usr/sbin/acct/ckpacct&
041** /usr/sbin/acct/monacct&
10 3 * * * /usr/sbin/ac -p > /var/adm/timelog&
40 2 * * * /usr/sbin/pac -s&
The following example shows part of a
/usr/spool/cron/crontabs/root file that includes the dodisk shell
script:
03**4/usr/sbin/acct/dodisk > /var/adm/diskdiag&
12.3 Starting and Stopping Accounting
The startup and shutacct shell scripts enable and disable the various
accounting processes. The scripts invoke the acctwtmp program, which
adds a record to the /var/adm/wtmp file by using the system name as the
login name.
The startup shell script initializes the accounting functions and has the
following syntax:
/usr/sbin/acct/startup
_______________________ Note _______________________
You must ensure that the /var/adm/pacct file, which is
created by the startup script, is owned by group adm and user
adm and has 664 protection. If it does not have the correct
ownership, the accton command will not work, and the
following message will be displayed:
accton: uid/gid not adm
The shutacct script turns process accounting off and ensures that the
accounting functions are halted before the system shuts down. The
shutacct shell script has the following syntax:
/usr/sbin/acct/shutacct
[ Reason]
If the shutacct shell script is invoked, the
’Reason’
message is written
to the ut_line field in the /var/adm/wtmp file shutdown record. Then,
the turnacct off shell script is invoked to tell the kernel that its active
accounting functions should be disabled.
12–12 Administering the System Accounting Services