1.\" $OpenBSD: accton.8,v 1.13 2020/11/03 09:23:46 schwarze 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: November 3 2020 $ 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 46To have 47.Nm 48enabled at boot time, use 49.Dq rcctl enable accounting , 50which sets 51.Pp 52.Dl accounting=YES 53.Pp 54in 55.Xr rc.conf.local 8 . 56.Pp 57Log rotation of the default accounting file, 58.Pa /var/account/acct , 59is performed by the 60.Xr daily 8 61maintenance script. 62.Sh FILES 63.Bl -tag -width /var/account/acct 64.It Pa /var/account/acct 65default accounting file 66.El 67.Sh EXIT STATUS 68.Ex -std 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 first appeared in 79.At v7 . 80