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

Sam Hartman hartmans at debian.org
Fri Nov 14 21:25:53 GMT 2014


>>>>> "Simon" == Simon McVittie <smcv at debian.org> writes:

    Simon> On 14/11/14 03:50, Sam Hartman wrote:
    >> # 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

    Simon> That should be enough to enable "syslog-ng.service", because
    Simon> Debian's update-rc.d knows that /etc/init.d/foo in sysvinit
    Simon> corresponds to foo.service in systemd, and keeps their
    Simon> enabledness states in sync.

In my experience, that's not enough to enable a unit.
I had to add explicit enables for the krb5-kdc.service unit in the
krb5-kdc package (similar for krb5-admin-server); update-rc.d didn't do
the trick.

I agree that update-rc.d foo enable|disable does also seem to deal with
the unit.
I agree that it sometimes prints messages about how it's keeping things
in sync.
However, I've never seen evidence that update-rc.d foo defaults actually
does the right thing with the unit.

--Sam




More information about the Syslog-ng-maintainers mailing list