yubikey-val icon indicating copy to clipboard operation
yubikey-val copied to clipboard

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

Open mig5 opened this issue 10 years ago • 2 comments

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.

mig5 avatar Jun 17 '14 04:06 mig5

Thanks, and agreed, let's fix this when we move the wiki files to asciidoc files.

jas4711 avatar Jun 26 '14 12:06 jas4711

Has somebody worked on this already?

$ zcat /usr/share/doc/rsyslog/NEWS.Debian.gz
rsyslog (5.8.1-1) unstable; urgency=low

  The way rsyslog processes SIGHUP has changed. It no longer does a reload
  of its configuration, but simply closes all open files, which is a much more
  lightweight operation.
  To apply a changed configuration, rsyslogd needs to be restarted now.
  As a consequence, the reload action has been dropped from the init script.

  A new action called "rotate" was added to the init script, which signals
  rsyslogd to close all open files. This new action is used in the rsyslog
  logrotate configuration file.

  For more information, see:
  http://www.rsyslog.com/doc/v4compatibility.html
  http://www.rsyslog.com/doc/v5compatibility.html

 -- Michael Biebl <[email protected]>  Mon, 30 May 2011 18:26:51 +0200

paulmenzel avatar Feb 08 '16 11:02 paulmenzel