compress on rotation of logfiles

From: Christopher L. Barnard (cbar44@tsg.cbot.com)
Date: Tue Sep 20 2005 - 17:35:01 EDT


I have a solaris 9 box upon which one particular named logfile is huge.
I modified the /etc/logadm.conf file so that it would compress the logfile
when it rotated it -- but it did not. What have I gotten wrong in the syntax?

cron calls logadm once a week, on sunday morning. (logadm works in GMT, hence
the wierd time in the -P field). I am only saving one old copy of this
logfile, and that is what I want to compress...

/var/named/var/log/named.queries.log -C 1 -N -P 'Sun Jun 13 08:10:00 2004' -a '/usr/local/sbin/rndc reload' -g daemon -o named -p now -z 0

TIA, and I will summarize.

+-----------------------------------------------------------------------+
| Christopher L. Barnard O When I was a boy I was told that |
| cbarnard@tsg.cbot.com / \ anybody could become president. |
| (312) 347-4901 O---O Now I'm beginning to believe it. |
| http://www.cs.uchicago.edu/~cbarnard --Clarence Darrow |
+----------PGP public key available via finger or PGP keyserver---------+
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:31:41 EDT