.\" $OpenBSD: accton.8,v 1.10 2007/12/03 18:08:39 jmc 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: December 3 2007 $ .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 .Nm is usually started at boot time, and can be enabled by setting the following in .Pa /etc/rc.conf.local : .Pp .Dl accounting=YES .Pp See .Xr rc 8 and .Xr rc.conf 8 for more information on the boot process and enabling daemons. .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 SEE ALSO .Xr lastcomm 1 , .Xr acct 2 , .Xr acct 5 , .Xr daily 8 , .Xr sa 8 .Sh HISTORY The .Nm command has existed nearly forever, but this man page is new.