nbd-client and systemd

Ansgar Burchardt ansgar at debian.org
Wed Jul 15 11:46:31 BST 2015


On 07/15/2015 09:34 AM, Wouter Verhelst wrote:
> However, recently I found out about the
> systemd-no-service-for-init-rcS-script lintian error, which triggers for
> nbd-client. I'm afraid that if I create such a unit generator, this
> would still trigger.
> 
> Is that correct? If so, is there another way in which I can ship an
> nbd-client initscript for the benefit of !systemd installations, while
> still not using it for systemd installations? Dropping that init script
> is not something I wish to do.

When a package ships an init script that is not needed if systemd is
used as init, it can include a symlink

  /lib/systemd/system/${name}.service -> /dev/null

to mask the service. systemd should then just ignore the init script and
not handle it via its sysvinit generator (or the generated file should
be ignored).

I'm not sure if including such a symlink silences the lintian warning,
but if it does not I would consider that a bug in the lintian check.

Ansgar





More information about the Pkg-systemd-maintainers mailing list