[Letsencrypt-devel] Bug#849800: debhelper: dh_systemd_start --no-start has no effect
peter at colberg.org
Sat Dec 31 07:18:26 UTC 2016
I would like to add a systemd service and timer to acmetool that is
to be explicitly enabled by the user. debian/rules looks as follows:
dh_systemd_enable --no-enable acmetool.timer
dh_systemd_start --no-start acmetool.timer
However, first-time installation of the package yields this warning:
# dpkg -i acmetool_0.0.58-5_amd64.deb
Selecting previously unselected package acmetool.
(Reading database ... 52232 files and directories currently installed.)
Preparing to unpack .../acmetool_0.0.58-5_amd64.deb ...
Unpacking acmetool (0.0.58-5) ...
Setting up acmetool (0.0.58-5) ...
acmetool.timer is a disabled or a static unit, not starting it.
Inspecting the generated postinst it appears --no-start is ignored:
# Automatically added by dh_systemd_start
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
if [ -n "$2" ]; then
deb-systemd-invoke $_dh_action acmetool.timer >/dev/null || true
# End automatically added section
Should the above snippet not be omitted with --no-start?
More information about the Letsencrypt-devel