acct_enable(ADM)
acct_enable --
enable, disable, or report default process accounting
Syntax
/usr/lib/acct/acct_enable
-c | -n | -y
[ -s ]
Description
acct_enable enables or disables process accounting
(normally disabled by default during system startup).
acct_enable takes the following options:
-c-
Check: report if accounting and any of its components are enabled or disabled.
-n-
Disable process accounting if presently enabled.
-s-
Silent: turn off reporting of actions taken (-n and
-y) or results discovered (-c). Errors are
still reported.
-y-
Enable default process accounting.
You must reboot the system after running acct_enable
for the changes to take effect.
Exit values
With the check (-c) option, acct_enable
returns the following exit values:
0-
Accounting is completely enabled; neither
ckpacct or runacct is missing.
1-
monacct(ADM)
is not being run; monthly account processing is disabled.
2-
dodisk(ADM)
is not being run; user disk space is not being accounted.
4-
runacct(ADM)
is not being run; accounting data is not being processed nightly.
8-
ckpacct(ADM)
is not being run; the disk may fill up as the accounting files
become extremely large.
30-
Cannot obtain crontab for a user; cannot determine
whether accounting is enabled or disabled.
32-
Accounting is disabled; only ckpacct exists.
33-
Accounting is partially enabled; only one of ckpacct
or runacct is missing.
34-
Accounting is partially disabled; both ckpacct
and runacct are missing.
35-
Accounting is completely disabled.
36-
Unknown accounting status.
Note that exit values 1, 2, 4, and 8 may be ORed
together to report several errors.
With the enable (-y), and disable (-n) options,
acct_enable may return one of the following exit codes:
0-
Accounting has successfully been completely enabled or disabled.
3-
A hangup, interrupt, quit, or termination signal
(SIGHUP, SIGHUP, SIGHUP, or SIGHUP)
was received.
10-
Cannot obtain a user's crontab;
accounting may not be fully enabled.
11-
Cannot change a user's crontab;
cannot determine whether accounting is fully enabled.
20-
Cannot obtain a user's crontab;
accounting may not be fully disabled.
21-
Cannot change a user's crontab;
cannot determine whether accounting is fully disabled.
Authorization
Only root can run acct_enable.
Files
/usr/adm/pacct-
accounting report file
/usr/spool/cron/crontabs/adm-
system accounting cron jobs
/etc/rc.d/6/kinit-
init script that starts accounting; do not edit this
file to enable or disable accounting -- always use
acct_enable
See also
acct(ADM),
acctcom(ADM),
accton(ADM),
acctsh(ADM),
cron(C),
crontab(C),
init(M)
Standards conformance
acct_enable is not part of any currently supported standard;
it is an extension of AT&T System V provided by The Santa Cruz
Operation, Inc.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003