Götz Reinicke wrote:
After a /etc/init.d/syslog restart the logs are written until they have to be rotated, then no new entries are loged (The empty logfile is touched). :-((
Any ideas? What to check?
Make sure /etc/logrotate.d/syslog is actually restarting syslog as well. Mine looks like this:
----------
/var/log/messages /var/log/secure /var/log/boot.log /var/log/cron {
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
----------
(there are missing log files from the first line compared to a stock install - I don't need those rotated, so I remove them.)
--
H | I haven't lost my mind; it's backed up on tape somewhere.
+--------------------------------------------------------------------
Ashley M. Kirchner <mailto:ashley@xxxxxxxxxx> . 303.442.6410 x130
IT Director / SysAdmin / WebSmith . 800.441.3873 x130
Photo Craft Imaging . 3550 Arapahoe Ave. #6
http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.