From owner-freebsd-doc@FreeBSD.ORG Fri Apr 2 04:00:43 2004 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 894ED16A4CE for ; Fri, 2 Apr 2004 04:00:43 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DDFE43D5D for ; Fri, 2 Apr 2004 04:00:43 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i32C0ebv015362 for ; Fri, 2 Apr 2004 04:00:40 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i32C0eIP015359; Fri, 2 Apr 2004 04:00:40 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 2 Apr 2004 04:00:40 -0800 (PST) Resent-Message-Id: <200404021200.i32C0eIP015359@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Marc Silver Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E42516A4CE for ; Fri, 2 Apr 2004 03:55:32 -0800 (PST) Received: from riffraff.plig.net (riffraff.plig.net [195.40.6.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E25443D2D for ; Fri, 2 Apr 2004 03:55:32 -0800 (PST) (envelope-from marcs@riffraff.plig.net) Received: from localhost (localhost [127.0.0.1]) by riffraff.plig.net (Postfix) with ESMTP id 3C9A3FA3BA for ; Fri, 2 Apr 2004 12:55:31 +0100 (BST) Received: from riffraff.plig.net ([127.0.0.1]) by localhost (riffraff.plig.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 85357-01-8 for ; Fri, 2 Apr 2004 12:55:26 +0100 (BST) Received: by riffraff.plig.net (Postfix, from userid 3010) id 794B3FA37F; Fri, 2 Apr 2004 12:55:23 +0100 (BST) Message-Id: <20040402115523.794B3FA37F@riffraff.plig.net> Date: Fri, 2 Apr 2004 12:55:23 +0100 (BST) From: Marc Silver To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/65070: acct(2) patch X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Marc Silver List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2004 12:00:43 -0000 >Number: 65070 >Category: docs >Synopsis: acct(2) patch >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Apr 02 04:00:40 PST 2004 >Closed-Date: >Last-Modified: >Originator: Marc Silver >Release: FreeBSD 4.9-STABLE i386 >Organization: >Environment: System: FreeBSD riffraff.plig.net 4.9-STABLE FreeBSD 4.9-STABLE #5: Wed Mar 3 16:21:56 GMT 2004 keet@riffraff.plig.net:/usr/src/sys/compile/RIFFRAFF i386 >Description: The man page for acct(2) is missing information on certain sysctl(8) variables which affect process accounting. It's also missing a link to the accton(8) command, which should be included, imho. >How-To-Repeat: man 2 acct >Fix: Apply the following patch: --- acct.2-orig Fri Apr 2 12:35:55 2004 +++ acct.2 Fri Apr 2 12:38:16 2004 @@ -75,9 +75,27 @@ .Pp This call is permitted only to the super-user. .Sh NOTES -Accounting is automatically disabled when the file system the -accounting file resides on runs out of space; it is enabled when -space once again becomes available. +Accounting is automatically disabled when the file system the accounting +file resides on runs out of space; it is enabled when space once +again becomes available. These values can be controlled using the +following +.Xr sysctl 8 +variables: +.Pp +.Bl -ohang -offset indent +.It kern.acct_chkfreq +.Pq Vt int +Specifies the frequency (in minutes) with which free disk +space should be checked. +.It kern.acct_resume +.Pq Vt int +The percentage of free disk space above which process +accounting will resume. +.It kern.acct_suspend +.Pq Vt int +The percentage of free disk space below which process +accounting will suspend. +.El .Sh RETURN VALUES On error -1 is returned. The file must exist and the call may be exercised only by the super-user. @@ -112,7 +130,8 @@ .El .Sh SEE ALSO .Xr acct 5 , -.Xr sa 8 +.Xr sa 8 , +.Xr accton 8 .Sh HISTORY The .Fn acct >Release-Note: >Audit-Trail: >Unformatted: