summaryrefslogtreecommitdiffstats
path: root/autoscripts/postinst-init-restart
blob: 19dff68a18671dca4aa2082957b9df2b9c84b5f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
	if [ -x "/etc/init.d/#SCRIPT#" ]; then
		update-rc.d #SCRIPT# #INITPARMS# >/dev/null
		if [ -n "$2" ]; then
			_dh_action=restart
		else
			_dh_action=start
		fi
		invoke-rc.d #INVOKE_RCD_PARAMS##SCRIPT# $_dh_action || #ERROR_HANDLER#
	fi
fi