Wednesday 20 July 2022

Re: rsyslog trigger?

Hi Andreas,

On Wed, Jul 20, 2022 at 10:49:42AM -0300, Andreas Hasenack wrote:
> I was working on a few packages that had bugs related to rsyslog
> logging, and noticed that they don't seem to restart or reload rsyslog
> after they install a config snippet in /etc/rsyslog.d/*.conf.

I think it's bad/surprising behaviour to automatically end up in a state
where the actually running configuration doesn't match the configuration
in /etc. That would lead to user surprises and/or regressions on reboot
or on a further package upgrade (to rsyslog in this case).

> Would it make sense to use dpkg triggers to restart rsyslog everytime
> a file is updated in /etc/rsyslog.d/*.conf?

That sounds like the appropriate way to fix it to me.

Robie