[debhelper-devel] Bug#729094: dh_installinit uses wrong paths for prerm and postinst when using upstart
Niklas Fiekas
niklas.fiekas at tu-clausthal.de
Fri Nov 8 23:19:31 UTC 2013
Package: debhelper
Version: 9.20120909
X-Debbugs-CC: danilo.gasdzik at tu-clausthal.de,
michael.heiderich at tu-clausthal.de, pkl11 at tu-clausthal.de
# prerm-init
if [ -x "/etc/init.d/#SCRIPT#" ]; then
invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER#
fi
# postinst-init
if [ -x "/etc/init.d/#SCRIPT#" ]; then
update-rc.d #SCRIPT# #INITPARMS# >/dev/null
invoke-rc.d #SCRIPT# start || #ERROR_HANDLER#
fi
dh_installinit generates a prerm.debhelper and
a postinst.debhelper for upstart scripts.
However upstart scripts go to init rather than init.d.
So the maintainer scripts do not start and stop the
service during install/uninstall.
More information about the debhelper-devel
mailing list