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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content