Installation guide
In the following example, the runacct shell script is invoked at its
MERGE state and uses the accounting database files from January 26:
# runacct 0126 MERGE > /var/adm/nite/fd2log&
The following example invokes the runacct shell script, which uses the
accounting database files from January 26 and specifies the nohup
command so that signals, hangups, logouts, and quits are disregarded; any
error messages generated during its execution are written to the fd2log
file:
# nohup runacct 0126 > /var/adm/acct/nite/fd2log&
12.9.1.2 Examples of Errors and Corrective Actions
The following list provides examples of errors and the actions you can take
to correct problems:
ERROR: locks found. run aborted
A /var/adm/acct/nite/lock file exists. Remove the file and
restart the runacct shell script from its last completed state.
ERROR: acctg already run for Fri : check Jan
The current date is the same as the date specified in the
/var/adm/acct/nite/lastdate file. Remove the file and restart
the runacct shell script from its last completed state.
ERROR: runacct called with invalid arguments
You have specified invalid arguments with the runacct shell script.
ERROR: turnacct switch returned rc=?
The accton command failed when it was invoked by the turnacct
switch shell script. Check the accton command protections and
ensure that user adm can invoke the command.
ERROR: Spacct?.mmdd already exists run setup manually
You must invoke the runacct shell script manually from the MERGE
state.
ERROR: wtmpfix errors see nite/wtmperror
An unrepairable wtmp file was found during the WTMPFIX state. Use
the fwtmp command to correct the file.
12–38 Administering the System Accounting Services