Running service rsyslog reload no longer does anything

Solution Verified - Updated -

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 the reload function simply causes exit 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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.