Unix Technical Forum

accouting log rotation

This is a discussion on accouting log rotation within the mailing.openbsd.tech forums, part of the OpenBSD category; --> Hi... Since there's a new accouting log rotation in current now, wouldn't it be a good thing to incorporate ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 08:11 AM
Antoine Jacoutot
 
Posts: n/a
Default accouting log rotation

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:23 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com