[Pkg-systemd-maintainers] Bug#709842: [PATCH] Add new helper dh_installsystemd
Michael Stapelberg
stapelberg at debian.org
Wed Jun 12 07:29:22 BST 2013
Hi Joey,
I tried going down the route of a separate utility yesterday
evening. While of course dh_systemd gets quite small, I am now convinced
that integrating this code into dh_installinit is not the way to go:
• The API to not install any files and just generate scripts is
currently dh_installinit --onlyscripts --name=foo. For systemd units,
we’d have to use dh_installinit --onlyscripts
--name=/lib/systemd/system/foo.service, and probably also add an extra
parameter to specify that we only want systemd scripts, unless the
package ships with an init script, too.
• The code becomes simpler in the common case (init script + service
file) but a horrible mess as soon as the complex cases should be
handled, too (e.g. unit files only).
I discussed a bit with biebl@ and we concluded that it’d be better to
ship dh_systemd in its own package for now in order to gather some
experience on what works and what doesn’t without bugging you all the
time. We can revisit a merge into debhelper at some point later in time.
Therefore, I am closing this bug and thank you once more for your
reviews and advice.
--
Best regards,
Michael
More information about the Pkg-systemd-maintainers
mailing list