Skip to content

logrotate: Don't fail when syslog not running #106

Merged
merged 1 commit into from
Oct 17, 2019
Merged

Commits on Oct 17, 2019

  1. logrotate: Don't fail when syslog not running

    Avoid error
    
        logrotate[225]: dateext suffix '.2019-10'
        logrotate[225]: glob pattern '.[0-9][0-9][0-9][0-9]-[0-9][0-9]'
        logrotate[225]: renaming /var/log/messages to /var/log/messages.2019-10
        logrotate[225]: running postrotate script
        logrotate[225]: cat: /var/run/rsyslogd.pid: No such file or directory
        logrotate[225]: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... o
        logrotate[225]: error: error running shared postrotate script for '/var/log/messages '
        systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
        systemd[1]: logrotate.service: Failed with result 'exit-code'.
        systemd[1]: Failed to start Rotate log files.
    donald committed Oct 17, 2019
    Configuration menu
    Copy the full SHA
    d2f8a82 View commit details
    Browse the repository at this point in the history