[BACK]Return to accton.8 CVS log [TXT][DIR] Up to [local] / src / usr.sbin / accton

File: [local] / src / usr.sbin / accton / accton.8 (download)

Revision 1.13, Tue Nov 3 09:23:46 2020 UTC (3 years, 6 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, HEAD
Changes since 1.12: +4 -2 lines

insert missing EXIT STATUS section;
OK jmc@ deraadt@

.\"	$OpenBSD: accton.8,v 1.13 2020/11/03 09:23:46 schwarze Exp $
.\"
.\" Copyright (c) 1993 Christopher G. Demetriou
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. The name of the author may not be used to endorse or promote products
.\"    derived from this software without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
.\" DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd $Mdocdate: November 3 2020 $
.Dt ACCTON 8
.Os
.Sh NAME
.Nm accton
.Nd enable/disable system accounting
.Sh SYNOPSIS
.Nm accton
.Op Ar file
.Sh DESCRIPTION
With an argument naming an existing
.Ar file ,
.Nm
causes system accounting information for every process executed
to be placed at the end of the file.
If no argument is given, accounting is turned off.
.Pp
To have
.Nm
enabled at boot time, use
.Dq rcctl enable accounting ,
which sets
.Pp
.Dl accounting=YES
.Pp
in
.Xr rc.conf.local 8 .
.Pp
Log rotation of the default accounting file,
.Pa /var/account/acct ,
is performed by the
.Xr daily 8
maintenance script.
.Sh FILES
.Bl -tag -width /var/account/acct
.It Pa /var/account/acct
default accounting file
.El
.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr lastcomm 1 ,
.Xr acct 2 ,
.Xr acct 5 ,
.Xr daily 8 ,
.Xr sa 8
.Sh HISTORY
The
.Nm
command first appeared in
.At v7 .