[Pkg-systemd-maintainers] Passing parameters to dh_systemd_start

Alejandro Exojo aexojo at modpow.es
Thu Mar 6 10:28:09 GMT 2014


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


But it doesn't work properly. Each call acts on both maintainer scripts:

http://pastie.org/8880923

And these are the generated scripts:
http://pastie.org/8880983
http://pastie.org/8880990

As you can see, it seems the scripts are the same, even after the
different invocation.

Thanks in advance.

-- 
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