Am 24.01.2018 um 21:32 schrieb Niels Thykier:
> On Sun, 21 Jan 2018 15:44:05 +0100 Michael Biebl <bi...@debian.org> wrote:
>> Package: debhelper
>> Version: 11.1.3
>> Severity: normal
>>
>> I use the following in network-manager:
>>
>> override_dh_systemd_start:
>>        dh_link -pnetwork-manager \
>>               lib/systemd/system/NetworkManager.service \
>>               lib/systemd/system/network-manager.service
>>        dh_systemd_start -pnetwork-manager --no-also NetworkManager.service
>>
>> The background is, that traditionally, the Debian SysV init script is
>> called /etc/init.d/network-manager and the upstream systemd service is
>> named NetworkManager.service
>>
>> I thus created the symlink which told dh_systemd_start to not generate
>> start code for NetworkManager.service (using deb-systemd-invoke) but
>> leave this up to invoke-rc.d network-manager
>>
>> It seems this no longer works with dh_installsystemd.
>>
>> [...]
> Hi Felipe,
> 
> What is your take on this bug?

I assume the answer will be basically the same as for
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887904#10

I think we should invert the logic and stop letting
dh_installinit/invoke-rc.d handle services which have a native systemd
.service file.
Maybe this could be as simple as letting dh_installinit in compat 11
generate code which wraps the invoke-rc.d call like this:

> if ! [ -d /run/systemd/system ] || ! [ -e /lib/sytemd/system/foo.service ] ; 
> then
>       invoke-rc.d foo $_dh_action || exit 1
> fi




-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to