[Pkg-haproxy-maintainers] Bug#790871: haproxy install should restart rsyslog

Olav Morken olav.morken at uninett.no
Thu Jul 2 14:12:25 UTC 2015

Package: haproxy
Version: 1.5.8-3

When haproxy is installed, it adds a file:


This file configures:
* A log socket in the HAProxy chroot
* A separate log file for HAProxy log messages.

However, after this file is installed, rsyslog is not restarted. The 
result is that the log configuration doesn't work until the user 
discovers this and manually restarts rsyslog.

It would be nice if this could be done during package installation. 
Maybe something like this in `haproxy.postinst` would work?

     if [ -x '/etc/init.d/rsyslog' ]; then
             invoke-rc.d rsyslog restart

Best regards,
Olav Morken

More information about the Pkg-haproxy-maintainers mailing list