Cannot discern reason for syslog entry "-a" post command in /etc/logadm.conf

From: Steven Sim (steven.sim@faplccc.net)
Date: Tue Nov 14 2006 - 07:01:35 EST


Gurus;

With reference to Solaris 10 (not sure whether this applies to Solaris 9
also) /etc/logadm.conf,

I am wondering why the logadm entry for /var/log/syslog is as follows;

/var/log/syslog -C 8 -a 'kill -HUP `cat /var/run/syslog.pid`'

If the intention was to restart syslogd to ensure that syslog logs to
the proper file because there is a new /var/log/syslog created (each
time logadm rotates the /var/log/syslog), then why not simply use the
logadm "-c" option?

Like so...

/var/log/syslog -c -C 8

Then there would be no need for a post command (-a) and no need to kill
-HUP the syslog daemon at all.

The above option would still keep 8 older version but instead of
creating a new /var/log/syslog each time, it would simply truncate the
file to zero, thereby "creating" a new file but still allowing the
active syslogd to keep it's open file descriptor to /var/log/syslog valid..

Unless I completely misunderstand the "-c" option for logadm...

Warmest Regards
Steven Sim

Fujitsu Asia Pte. Ltd.
_____________________________________________________

This e-mail is confidential and may also be privileged. If you are not the intended recipient, please notify us immediately. You should not copy or use it for any purpose, nor disclose its contents to any other person.

Opinions, conclusions and other information in this message that do not relate to the official business of my firm shall be understood as neither given nor endorsed by it.
_______________________________________________
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:41:11 EDT