List Info

Thread: (RHE4) Logrotate Not Restarting Syslog




(RHE4) Logrotate Not Restarting Syslog
user name
2006-01-30 19:01:44
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:

[roothost 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-requestredhat.com?subject=unsubscribe
h
ttps://www.redhat.com/mailman/listinfo/redhat-list
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )