1999-08-28 23:23:38 +00:00
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
1997-06-23 04:03:49 +00:00
|
|
|
.Dd May 21, 1993
|
1996-12-21 22:21:48 +00:00
|
|
|
.Dt ACCTON 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm accton
|
|
|
|
.Nd enable/disable system accounting
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1996-12-21 22:21:48 +00:00
|
|
|
.Op Ar acctfile
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2002-07-14 14:47:15 +00:00
|
|
|
utility is used
|
1996-12-21 22:21:48 +00:00
|
|
|
for switching system accounting on or off.
|
|
|
|
If called with the argument
|
|
|
|
.Ar acctfile ,
|
2004-04-16 09:31:17 +00:00
|
|
|
system accounting is enabled.
|
|
|
|
The
|
|
|
|
.Ar acctfile
|
|
|
|
specified must exist prior to starting system accounting, or
|
|
|
|
.Nm
|
|
|
|
will return an error.
|
|
|
|
A record of every process that is started by the
|
1996-12-21 22:21:48 +00:00
|
|
|
.Xr execve 2
|
|
|
|
system call and then later exits the system is stored in
|
|
|
|
.Ar acctfile .
|
|
|
|
The
|
|
|
|
.Xr sa 8
|
2002-03-08 01:29:06 +00:00
|
|
|
command may be used to examine the accounting records.
|
2001-09-05 19:26:17 +00:00
|
|
|
If no arguments are given, system accounting is disabled.
|
1996-12-21 22:21:48 +00:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /var/account/acct
|
|
|
|
.It Pa /var/account/acct
|
2000-05-28 14:56:04 +00:00
|
|
|
default accounting file
|
1996-12-21 22:21:48 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr lastcomm 1 ,
|
|
|
|
.Xr acct 2 ,
|
2004-04-16 09:31:17 +00:00
|
|
|
.Xr acct 5 ,
|
1996-12-21 22:21:48 +00:00
|
|
|
.Xr sa 8
|