/usr/share/debhelper/autoscripts/postinst-init-restart is in debhelper 9.20120115ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | if [ -x "/etc/init.d/#SCRIPT#" ]; then
if [ ! -e "/etc/init/#SCRIPT#.conf" ]; then
update-rc.d #SCRIPT# #INITPARMS# >/dev/null
fi
if [ -n "$2" ]; then
_dh_action=restart
else
_dh_action=start
fi
invoke-rc.d #SCRIPT# $_dh_action || #ERROR_HANDLER#
fi
|