[Pkg-systemd-maintainers] Passing parameters to dh_systemd_start
Alejandro Exojo
aexojo at modpow.es
Tue Mar 11 09:39:46 GMT 2014
2014-03-06 21:37 GMT+01:00 Michael Biebl <biebl at debian.org>:
> Am 06.03.2014 11:28, schrieb Alejandro Exojo:
>> Hi.
>>
>> I'm doing a debian package for a custom service (and a custom setup,
>> hence the awkward setup). The service has a helper "upgrade" service,
>> so I have two ".service" files. I don't mind if I have to split in two
>> binary packages, but one would be a bit better, I think.
>>
>> The problem is that I only want the regular service to be restarted on
>> package upgrade, because if the second service is also restarted I get
>> an infinite loop.
>>
>> So I wanted to use a different parameter for dh_systemd_start for each
>> service. That's what I've tried:
>>
>> override_dh_systemd_start:
>> dh_systemd_start --no-restart-on-upgrade debian/upgrade-next.service
>> dh_systemd_start --restart-after-upgrade debian/next.service
>>
>
> Does it work if you use
> dh_systemd_start --no-restart-on-upgrade upgrade-next.service
> dh_systemd_start --restart-after-upgrade next.service
Damn, I feel so silly... This way seems I can get what I need. I tried
with that way too at some point, but since I was writing at the same
time the helper service and and the packaging itself, I got confused
on where the problem was.
Sorry about that.
--
Alejandro Exojo Piqueras
ModpoW, S.L.
Technova LaSalle | Sant Joan de la Salle 42 | 08022 Barcelona | www.modpow.es
More information about the Pkg-systemd-maintainers
mailing list