Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Documentation: 'reload' of rsyslog in logrotate doesn't work in Debian 7 #18

@mig5

Description

@mig5

The documentation for yubikey-val and yubikey-ksm suggests to create a Logrotate file that contains this postrotate command:

invoke-rc.d rsyslog reload > /dev/null

Debian Wheezy no longer supports 'reload' here. The logrotate cronjob errors out with the following:

/etc/cron.daily/logrotate:
Usage: /etc/init.d/rsyslog {start|stop|rotate|restart|force-reload|status}
invoke-rc.d: initscript rsyslog, action "reload" failed.
error: error running non-shared postrotate script for /var/log/ykval.log of '/var/log/ykval.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1

Suggest to change 'reload' to 'restart' which works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions