(RHE4) Logrotate Not Restarting Syslog

Bohmer, Andre ten Andre.tenBohmer at wur.nl
Mon Jan 30 19:11:36 UTC 2006


Hi,

> 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 at 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?
Maybe, but I had something similar which was caused because the /tmp partition mounted with noexec.

Cheers,
André




More information about the redhat-list mailing list