(RHE4) Logrotate Not Restarting Syslog
- From: "Jason Williard" <jwilliard@xxxxxxxxxx>
- Date: Mon, 30 Jan 2006 11:01:44 -0800
I have 3 new systems running RHE4, all of which are experiencing the same
issue. When the logs are rotated according to the script installed by
default, syslogd is not be restarted. I have set SELinux to run in
Permissive mode while I get the servers configured. Below is a copy of
/etc/logrotate.d/syslog
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler
/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
}
If I run the postrotate command by itself, it works. However, it does not
work when I force the logrotate, as seen below:
[root@host log]# logrotate -f /etc/logrotate.d/syslog
error: error running shared postrotate script for /var/log/messages
/var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log
/var/log/cron
Does anyone know why this is not working?
----
Thank You,
Jason Williard
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- Prev by Date: Start generating a baseline for system performance
- Next by Date: Re: Start generating a baseline for system performance
- Previous by thread: Start generating a baseline for system performance
- Next by thread: RE: (RHE4) Logrotate Not Restarting Syslog
- Index(es):