diff options
-rw-r--r-- | share/man/man8/daily.8 | 14 | ||||
-rw-r--r-- | usr.sbin/ac/ac.8 | 22 |
2 files changed, 16 insertions, 20 deletions
diff --git a/share/man/man8/daily.8 b/share/man/man8/daily.8 index 25577a9ff31..d8cda782ece 100644 --- a/share/man/man8/daily.8 +++ b/share/man/man8/daily.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: daily.8,v 1.5 2005/11/28 19:43:00 jmc Exp $ +.\" $OpenBSD: daily.8,v 1.6 2007/02/02 14:53:37 ajacoutot Exp $ .\" .\" Copyright (c) 2003 Jason McIntyre <jmc@openbsd.org> .\" @@ -185,6 +185,14 @@ Rebuilds the .Xr whatis 1 database(s) via .Xr makewhatis 8 . +.It +If +.Ev LOGINACCOUNTING +is set to 1 in root's crontab and the +.Pa /var/log/wtmp +file exists, show individual users' login via the +.Xr ac 8 +utility. .El .Ss /etc/monthly This script is run monthly. @@ -204,6 +212,10 @@ Determines whether to run Determines whether to run .Xr fsck 8 with the no-write flag. +.It Ev LOGINACCOUNTING +Determines whether to run +.Xr ac 8 +to report login accounting. .It Ev ROOTBACKUP Determines whether to make a backup of the root file system. .El diff --git a/usr.sbin/ac/ac.8 b/usr.sbin/ac/ac.8 index f4ef227b150..f146820dad8 100644 --- a/usr.sbin/ac/ac.8 +++ b/usr.sbin/ac/ac.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ac.8,v 1.14 2005/11/17 14:42:06 jmc Exp $ +.\" $OpenBSD: ac.8,v 1.15 2007/02/02 14:53:37 ajacoutot Exp $ .\" .\" Copyright (c) 1994 Simon J. Gerraty .\" Copyright (c) 1994 Christopher G. Demetriou @@ -105,32 +105,16 @@ It is normally truncated by .Xr newsyslog 8 , which renames and rotates the .Pa wtmp -files, keeping a week's worth of data on hand. +files every week. In order for .Nm to run in sync with the rotation of .Pa wtmp , .Xr newsyslog 8 -will have to be altered to run +is configured to run just after .Nm completes. -A suggested procedure is to -uncomment the -.Nm -entry provided in -.Xr weekly 8 -and make the following amendment to -.Pa /etc/newsyslog : -.Bd -literal -offset 3n -/var/log/wtmp 644 7 * $W6D4 ZB -.Ed -.Pp -This will provide weekly mail reports on user accounting information, -truncating the log file just after -.Xr weekly 8 -is run from root's -.Xr crontab 5 . .Pp No login or connect time accounting is performed if .Pa /var/log/wtmp |