Package: rsyslog
Version: 8.2006.0-1

Hi,

due to #963715 I stopped+disabled+masked rsyslog on a system.

Now logrotate fails with

Jun 27 00:00:28 server02 systemd[1]: Starting Rotate log files...
Jun 27 00:00:32 server02 logrotate[151983]: Failed to kill unit
rsyslog.service: Unit rsyslog.service not loaded.
Jun 27 00:00:32 server02 logrotate[151924]: error: error running
non-shared postrotate script for /var/log/syslog of '/var/log/syslog
Jun 27 00:00:32 server02 logrotate[151924]: '
Jun 27 00:00:32 server02 logrotate[151987]: Failed to kill unit
rsyslog.service: Unit rsyslog.service not loaded.
Jun 27 00:00:32 server02 logrotate[151924]: error: error running
shared postrotate script for '/var/log/mail.info
Jun 27 00:00:32 server02 logrotate[151924]: /var/log/mail.warn
Jun 27 00:00:32 server02 logrotate[151924]: /var/log/mail.err
Jun 27 00:00:32 server02 logrotate[151924]: /var/log/mail.log
Jun 27 00:00:32 server02 logrotate[151924]: /var/log/daemon.log
Jun 27 00:00:32 server02 logrotate[151924]: /var/log/kern.log
Jun 27 00:00:32 server02 logrotate[151924]: /var/log/auth.log
Jun 27 00:00:32 server02 logrotate[151924]: /var/log/user.log
Jun 27 00:00:32 server02 logrotate[151924]: /var/log/lpr.log
Jun 27 00:00:32 server02 logrotate[151924]: /var/log/cron.log
Jun 27 00:00:32 server02 logrotate[151924]: /var/log/debug
Jun 27 00:00:32 server02 logrotate[151924]: /var/log/messages
Jun 27 00:00:32 server02 logrotate[151924]: '
Jun 27 00:00:32 server02 systemd[1]: logrotate.service: Main process
exited, code=exited, status=1/FAILURE
Jun 27 00:00:32 server02 systemd[1]: logrotate.service: Failed with
result 'exit-code'.
Jun 27 00:00:32 server02 systemd[1]: Failed to start Rotate log files.

because the script /usr/lib/rsyslog/rsyslog-rotate fails with

    Failed to kill unit rsyslog.service: Unit rsyslog.service not loaded.

Please alter the script to not fail if rsyslog is not up.

Best regards,
      Christian Göttsche

Reply via email to