[debhelper-devel] Bug#795519: debhelper: dh_installinit should run systemd-tmpfiles if a /usr/lib/tmpfiles.d/ snippet gets shipped for systemd-only packages also

Patrick Schleizer adrelanos at riseup.net
Fri Aug 14 20:48:34 UTC 2015


Package: debhelper
Severity: normal
Usertags: pkg-systemd-maintainers tmpfiles.d

As explained verbosely on the pkg-systemd-maintainers mailing list [1],
when a package ships a /usr/lib/tmpfiles.d/ snippet while at the same
time that package does not ship a sysvinit script, then the
'systemd-tmpfiles --create' debhelper auto generated code [2] is missing.

Cheers,
Patrick

[1]
http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/2015-August/008483.html
[2]
# Automatically added by dh_installinit
# In case this system is running systemd, we need to ensure that all
# necessary tmpfiles (if any) are created before starting.
if [ -d /run/systemd/system ] ; then
	systemd-tmpfiles --create /usr/lib/tmpfiles.d/pkg-name.conf >/dev/null
|| true
fi
# End automatically added section




More information about the debhelper-devel mailing list