Running service rsyslog reload no longer does anything
Issue
- It used to be that running
service rsyslog reloadwould make rsyslog reread its config file; however, this doesn't work any more. - Inspecting
/etc/init.d/rsyslogshows that thereloadfunction simply causesexit 3to be run. Why? - We use
/etc/init.d/rsyslog reloadin/etc/logrotate.d/sysloglogrotate 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
