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 `serf@.service`
>> * in `debian/rules` i added `override_dh_installinit:`
>> * Added :
>> ```override_dh_installsystemd:
>>      dh_installsystemd -pserf serf@.service
>> ```
>> 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 serf@.service directly, only an instance like
serf@foo.service.

Not sure, what does "dh_installsystemd serf@.service" actually do?
Does it try to enable and/or start the service or simply copy a file
debian/serf@.service to the correct location?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to