1*2da9b3e0Swiz.\" $NetBSD: accton.8,v 1.14 2011/04/25 22:32:27 wiz Exp $ 2d220ca5bScgd.\" 37851679eScgd.\" Copyright (c) 1993 Christopher G. Demetriou 47851679eScgd.\" All rights reserved. 57851679eScgd.\" 67851679eScgd.\" Redistribution and use in source and binary forms, with or without 77851679eScgd.\" modification, are permitted provided that the following conditions 87851679eScgd.\" are met: 97851679eScgd.\" 1. Redistributions of source code must retain the above copyright 107851679eScgd.\" notice, this list of conditions and the following disclaimer. 117851679eScgd.\" 2. Redistributions in binary form must reproduce the above copyright 127851679eScgd.\" notice, this list of conditions and the following disclaimer in the 137851679eScgd.\" documentation and/or other materials provided with the distribution. 14db755e7cScgd.\" 3. All advertising materials mentioning features or use of this software 15db755e7cScgd.\" must display the following acknowledgement: 16db755e7cScgd.\" This product includes software developed for the 17806593a8Sgrant.\" NetBSD Project. See http://www.NetBSD.org/ for 18db755e7cScgd.\" information about NetBSD. 19db755e7cScgd.\" 4. The name of the author may not be used to endorse or promote products 207851679eScgd.\" derived from this software without specific prior written permission. 217851679eScgd.\" 227851679eScgd.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 23db755e7cScgd.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 24db755e7cScgd.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 25db755e7cScgd.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 26db755e7cScgd.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 27db755e7cScgd.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28db755e7cScgd.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29db755e7cScgd.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30db755e7cScgd.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 31db755e7cScgd.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32db755e7cScgd.\" 33db755e7cScgd.\" <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>> 347851679eScgd.\" 352f20e813Sjnemeth.Dd January 23, 2008 367851679eScgd.Dt ACCTON 8 37d1407362Sgarbled.Os 387851679eScgd.Sh NAME 3988e5411dScgd.Nm accton 407851679eScgd.Nd enable/disable system accounting 417851679eScgd.Sh SYNOPSIS 4295dff5caSlukem.Nm 4388e5411dScgd.Op Ar file 447851679eScgd.Sh DESCRIPTION 4588e5411dScgdWith an argument naming an existing 4688e5411dScgd.Ar file , 4795dff5caSlukem.Nm 4888e5411dScgdcauses system accounting information for every process executed 49*2da9b3e0Swizto be placed at the end of the file. 50*2da9b3e0SwizIf no argument is given, accounting is turned off. 512f20e813Sjnemeth.Pp 521a4ecbe1SwizThe default accounting file is 531a4ecbe1Swiz.Pa /var/account/acct . 542f20e813SjnemethTypically, accounting is enabled by rc scripts during the boot process. 552f20e813SjnemethIn 562f20e813Sjnemeth.Nx , 572f20e813Sjnemethone may enable accounting by setting the variable 582f20e813Sjnemeth.Dq accounting 592f20e813Sjnemethto 602f20e813Sjnemeth.Dq YES 611a4ecbe1Swizin 621a4ecbe1Swiz.Pa /etc/rc.conf . 632f20e813Sjnemeth.Pp 642f20e813SjnemethNote that, traditionally, the system accounting log file can not be rotated 652f20e813Sjnemethcleanly by 662f20e813Sjnemeth.Xr newsyslog 8 . 672f20e813SjnemethInstead, a default installation of 682f20e813Sjnemeth.Nx 691a4ecbe1Swizrotates 701a4ecbe1Swiz.Pa /var/account/acct 711a4ecbe1Swizusing the 721a4ecbe1Swiz.Pa /etc/daily 731a4ecbe1Swizscript. 742f20e813Sjnemeth.Sh FILES 752f20e813Sjnemeth.Bl -tag -width /var/account/acct -compact 762f20e813Sjnemeth.It Pa /var/account/acct 772f20e813SjnemethDefault accounting file. 782f20e813Sjnemeth.El 797851679eScgd.Sh SEE ALSO 807851679eScgd.Xr lastcomm 1 , 812f20e813Sjnemeth.Xr acct 5 , 822f20e813Sjnemeth.Xr sa 8 83