Comment 5 for bug 1331891

Revision history for this message
Dimitri John Ledkov (xnox) wrote : Re: [systemd] /etc/logrotate.d/rsyslog fails to reload rsyslog

Post-logrotate needs rsyslog to close and reopen file descriptors. It's not requesting for rsyslog to reload configuration, nor wants to. "reload" is a standard command, and under upstart init it sends SIGHUP to rsyslog, similarly under systemd with init.d script it generates systemd unit for which "reload" similarly sends SIGHUP. In debian unstable a native systemd unit is added for rsyslog, for which reload similarly just sends SIGHUP. Thus under all current and future configuration, the new postrotate results in correct actions taken - i.e. rsyslog closes and reopens files.

For, sysv init scripts "reload" command is specified as something else though in Debian Policy. However, no such restrictions are currently applied for upstart & systemd. If you believe that it's a bug in rsyslog systemd unit and upstart job, please open a separate bug about that in Debian BTS.