Running service rsyslog reload no longer does anything
Issue
- It used to be that running
service rsyslog reload
would make rsyslog reread its config file; however, this doesn't work any more. - Inspecting
/etc/init.d/rsyslog
shows that thereload
function simply causesexit 3
to be run. Why? - We use
/etc/init.d/rsyslog reload
in/etc/logrotate.d/syslog
logrotate configuration, but rsyslogd still writes to old log file. Why?
$ cat /etc/logrotate.d/syslog
/var/log/warn /var/log/messages /var/log/kern /var/log/adminlog /var/log/secure /var/log/cron {
...
sharedscripts
postrotate
/etc/init.d/rsyslog reload
endscript
}
Environment
- Red Hat Enterprise Linux 6
- rsyslog-5.8.10-2.el6 and above
- Red Hat Enterprise Linux 5
- rsyslog5-5.8.12-4.el5 and above
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.