Re: rsyslog trigger?

2022-07-20 Thread Robie Basak
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


signature.asc
Description: PGP signature
-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


Re: rsyslog trigger?

2022-07-20 Thread Andreas Hasenack
Never mind, the trigger exists already :)

On Wed, Jul 20, 2022 at 10:49 AM Andreas Hasenack  wrote:
>
> Hi,
>
> 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.
>
> For example, haproxy even has this note in its README.Debian:
> ```
> The default HAProxy configuration in Debian uses /dev/log for logging and
> ships an rsyslog snippet that creates /dev/log in HAProxy's chroot and logs 
> all
> HAProxy messages to /var/log/haproxy.log. To take advantage of this, you must
> restart rsyslog after installing this package.
> ```
> I checked a few others and the only restart/reload I see is in the
> logrotation, which might not even kick in if there is no log file yet,
> or if it's empty.
>
> Would it make sense to use dpkg triggers to restart rsyslog everytime
> a file is updated in /etc/rsyslog.d/*.conf?

-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel