[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#769499: syslog-ng-core fails to enable systemd service unit



package: syslog-ng-core
severity: important
version:3.3.5-4
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
fi

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 $?
fi
# End automatically added section


exit 0


Reply to: