From 729ad7eff77d09194b47f774af02d68c44849c64 Mon Sep 17 00:00:00 2001 From: jmc <> Date: Sat, 12 Nov 2005 16:14:37 +0000 Subject: [PATCH] move the ac(8) stuff to weekly, rather than monthly, since by default newsyslog truncates wtmp on a weekly basis; note that the ac stuff remains commented out as before; spotted by andreas bihlmaier; ok deraadt@ --- src/etc/monthly | 8 +------- src/etc/weekly | 8 +++++++- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/etc/monthly b/src/etc/monthly index 793ac416..910128c0 100644 --- a/src/etc/monthly +++ b/src/etc/monthly @@ -1,5 +1,5 @@ #!/bin/sh - -# $OpenBSD: monthly,v 1.5 1998/02/02 23:08:57 millert Exp $ +# $OpenBSD: monthly,v 1.6 2005/11/12 16:14:37 jmc Exp $ if [ -f /etc/monthly.local ];then echo "" @@ -8,9 +8,3 @@ if [ -f /etc/monthly.local ];then else echo "Nothing to do!" fi - -# echo "" -# echo "Doing login accounting:" -# ac -p | sort -nr +1 - -#echo "." diff --git a/src/etc/weekly b/src/etc/weekly index 8a253b7a..2ad469d4 100644 --- a/src/etc/weekly +++ b/src/etc/weekly @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: weekly,v 1.14 2003/06/30 22:04:57 avsm Exp $ +# $OpenBSD: weekly,v 1.15 2005/11/12 16:14:37 jmc Exp $ # PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec @@ -38,3 +38,9 @@ fi echo "" echo "Rebuilding whatis databases:" makewhatis + +# echo "" +# echo "Doing login accounting:" +# ac -p | sort -nr +1 + +#echo "."