Bug#795255: sysv-rc: Spurious error message after creating /usr/sbin/policy-rc.d

Martin Pitt mpitt at debian.org
Mon Jan 25 22:33:13 GMT 2016


Control: tag -1 -patch
Control: reassign -1 rsyslog
Control: forcemerge 672218 -1

Colin Leroy [2015-08-12 12:08 +0200]:
> invoke-rc.d: action rotate is unknown, but proceeding anyway.
> 
> This is due to the rsyslog logrotate configuration, executing this
> postrotate hook:
> 
> invoke-rc.d rsyslog rotate
> 
> I have patched invoke-rc.d to add rotate to the list of known valid
> actions to get rid of this error, and avoid getting spammed by the
> daily cron.

This would just paper over the error that "invoke-rc.d rsyslog rotate"
is undefined for running under systemd or upstart, as "rotate" is
*only* defined for /etc/init.d/rsyslog. Thus if the logrotate script
really wants to do that instead of directly sending a SIGHUP, then it
should also call the init.d script directly.

Merging with the existing bug against rsyslog.

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)



More information about the Pkg-systemd-maintainers mailing list