:: [devuan-dev] bug#883: /usr/lib/rsys…
Inizio della pagina
Delete this message
Reply to this message
Autore: Mark Hindley
Data:  
To: Opty, 883
Oggetto: [devuan-dev] bug#883: /usr/lib/rsyslog/rsyslog-rotate: Questionable use of invoke-rc.d
Control: tags -1 moreinfo

On Tue, Apr 01, 2025 at 02:44:45PM +0200, Opty wrote:
> Package: rsyslog
> Version: 8.2302.0-1+deb12u1devuan1
>
> /usr/lib/rsyslog/rsyslog-rotate uses invoke-rc.d to notify rsyslog to
> reopen logs but it doesn't work when using
> policy-rcd-declarative-deny-all so shouldn't the logrotate
> configuration snippet use rather 'service' ?


Possibly, although all the other logrotate fragments I can find use invoke-rc.d.

Why do you have policy-rcd-declarative-deny-all installed anyway? I suppose the
rationale goes that if you deny starting services in the first place, you don't
need to rotate the logs because they will be empty/unchanged.

Mark