[Pkg-systemd-maintainers] Passing parameters to dh_systemd_start

Michael Biebl biebl at debian.org
Thu Mar 6 20:37:30 GMT 2014


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


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140306/8bfe2728/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list