Michael Biebl:
> Am 09.02.20 um 09:33 schrieb Niels Thykier:
>> Control: tags -1 -d-i
>>
>> Badreddin Aboubakr:
>>> Package: debhelper
>>> Version: 12
>>> Severity: normal
>>> Tags: d-i
>>>
>>> Hello,
>>> i was trying to build Serf locally for stretch using debhelper 12.
>>> I started with golang-github-hashicorp-serf
>>> (0.8.1+git20171021.c20a0b1~ds1-4~bpo9+1),
>>> which is on the offical debain repo and did the following:
>>>
>>> * Renamed `serf.service` inside debian/ to `[email protected]`
>>> * in `debian/rules` i added `override_dh_installinit:`
>>> * Added :
>>> ```override_dh_installsystemd:
>>>     dh_installsystemd -pserf [email protected]
>>> ```
>>> to `debian\rules`
>>> Using sbuild with debhelper 12 i could build the package, however after
>>> installing it one would need to excute systemctl daemon-reload manually
>>> to reload systemd unit files 
>>>
>>> expected behavior : the systemctl daemon-reload command added
>>> automatically to postinst
>>>
>>> Thanks.
>>>
>>
>> Hi Michael,
>>
>> AFAICT, this occurs because we never consider a templated service
>> startable (and all daemon-reload commands are in the "start" scripts).
> 
> Correct, you can't start [email protected] directly, only an instance like
> [email protected].
> 
> Not sure, what does "dh_installsystemd [email protected]" actually do?
> Does it try to enable and/or start the service or simply copy a file
> debian/[email protected] to the correct location?
> 

AFAICT, it only copies it in place and nothing more.

~Niels

Reply via email to