[Syslog-ng-maintainers] Bug#769499: syslog-ng-core fails to enable systemd service unit

Sam Hartman hartmans at debian.org
Fri Nov 14 03:50:02 GMT 2014

package: syslog-ng-core
severity: important
justification:  does not enable systemd unit.

syslog-ng-core's postinst does not enable its syslog unit.
I'm guessing that including systemd in the dh sequence is not quite
doing enough to actually  turn it on.

Unfortunately dh-systemd is under-documented so I cannot tell where the
bug is but I bet an explicit call to dh_systemd_enable will make your
users happy.
Attached is the buggy postinst

#! /bin/sh

set -e

if [ "$1" = "triggered" ]; then
   invoke-rc.d syslog-ng stop || exit $?
   invoke-rc.d syslog-ng start || exit $?
   exit 0

dpkg-trigger register-syslog-ng-plugin

# Automatically added by dh_installinit
if [ -x "/etc/init.d/syslog-ng" ]; then
	update-rc.d syslog-ng defaults 10 90 >/dev/null || exit $?
# End automatically added section

exit 0

More information about the Syslog-ng-maintainers mailing list