#1143243 debhelper: please add support for multiple services per binary package in dh_installsystemd

#1143243#5
Date:
2026-08-01 11:54:53 UTC
From:
To:
Dear Maintainers,

kindly add support for more than one service per binary package in
dh_installsystemd.  I imagine it like this

debian/mybinarypkg.myservice1.service
debian/mybinarypkg.myservice2.service
debian/mybinarypkg.myservice3.service

Currently, it requires an override_dh_installsystemd (and probably
additional cleanup) but it would be great if this was supported out of
the box.

override_dh_installsystemd:
     dh_installsystemd --name=myservice1
     dh_installsystemd --name=myservice2
     dh_installsystemd --name=myservice3
     dh_installsystemd

Another use case for this is when the current assumption of
$binarypkgname == $servicename breaks even with a single service.

Thank you and best regards

Rolf Leggewie

#1143243#10
Date:
2026-08-01 17:07:05 UTC
From:
To:
Rolf Leggewie:

Hi Rolf

Thanks for the suggestion.

I do not think this feature is likely to appear in `debhelper` due to
the underlying mechanics and how this would interact with other features
(such as needing `--no-start` / `--no-enable` only for a subset of
services).

It is a feature I have set out to support better in `debputy` (requires
integration mode `dh-sequence-zz-debputy` or `full`). Depending on your
situation and the package(s) in question, this may be an option for you.
If you are open to seeing it, I am happy to help with a prototype
porting of concrete packages, provided the package can be supported by
`debputy` at this stage.

Best regards,
Niels