xref: /openbsd/usr.sbin/accton/accton.8 (revision 404b540a)
1.\"	$OpenBSD: accton.8,v 1.10 2007/12/03 18:08:39 jmc Exp $
2.\"
3.\" Copyright (c) 1993 Christopher G. Demetriou
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. The name of the author may not be used to endorse or promote products
15.\"    derived from this software without specific prior written permission.
16.\"
17.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20.\" DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
21.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
25.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
26.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27.\" POSSIBILITY OF SUCH DAMAGE.
28.\"
29.Dd $Mdocdate: December 3 2007 $
30.Dt ACCTON 8
31.Os
32.Sh NAME
33.Nm accton
34.Nd enable/disable system accounting
35.Sh SYNOPSIS
36.Nm accton
37.Op Ar file
38.Sh DESCRIPTION
39With an argument naming an existing
40.Ar file ,
41.Nm
42causes system accounting information for every process executed
43to be placed at the end of the file.
44If no argument is given, accounting is turned off.
45.Pp
46.Nm
47is usually started at boot time,
48and can be enabled by setting the following in
49.Pa /etc/rc.conf.local :
50.Pp
51.Dl accounting=YES
52.Pp
53See
54.Xr rc 8
55and
56.Xr rc.conf 8
57for more information on the boot process and enabling daemons.
58.Pp
59Log rotation of the default accounting file,
60.Pa /var/account/acct ,
61is performed by the
62.Xr daily 8
63maintenance script.
64.Sh FILES
65.Bl -tag -width /var/account/acct
66.It Pa /var/account/acct
67default accounting file
68.El
69.Sh SEE ALSO
70.Xr lastcomm 1 ,
71.Xr acct 2 ,
72.Xr acct 5 ,
73.Xr daily 8 ,
74.Xr sa 8
75.Sh HISTORY
76The
77.Nm
78command has existed nearly forever, but this man page is new.
79