[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
accouting log rotation
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: accouting log rotation
- From: Antoine Jacoutot <ajacoutot_(_at_)_lphp_(_dot_)_org>
- Date: Tue, 22 Nov 2005 11:54:44 +0000
Hi...
Since there's a new accouting log rotation in current now, wouldn't it be a good
thing to incorporate the following changes from ac(8) ? Or am I just ignorant ?
Thanks.
Antoine
--- /etc/weekly.orig Tue Nov 22 12:45:32 2005
+++ /etc/weekly Tue Nov 22 12:45:56 2005
@@ -39,6 +39,8 @@
echo "Rebuilding whatis databases:"
makewhatis
-# echo ""
-# echo "Doing login accounting:"
-# ac -p | sort -nr +1
+if [ -f /var/account/acct ]; then
+ echo ""
+ echo "Doing login accounting:"
+ ac -p | sort -nr +1
+fi
--- /etc/newsyslog.conf.orig Tue Nov 22 12:48:02 2005
+++ /etc/newsyslog.conf Tue Nov 22 12:45:01 2005
@@ -11,7 +11,7 @@
/var/log/maillog 600 7 * 24 Z
/var/log/messages 644 5 30 * Z
/var/log/secure 600 7 * 168 Z
-/var/log/wtmp 644 7 * 168 ZB
+/var/log/wtmp 644 7 * $W6D4 ZB
/var/log/xferlog 640 7 250 * Z
/var/log/ppp.log 640 7 250 * Z
/var/log/pflog 600 3 250 * ZB
/var/run/pflogd.pid
Visit your host, monkey.org