]> git.donarmstrong.com Git - debhelper.git/blob - autoscripts/postinst-init-restart
ba4b3a026c014d2926a5779386192fbec66d3423
[debhelper.git] / autoscripts / postinst-init-restart
1 if [ -x "/etc/init.d/#SCRIPT#" ]; then
2         update-rc.d #SCRIPT# #INITPARMS# >/dev/null
3         if [ -n "$2" ]; then
4                 _dh_action=restart
5         else
6                 _dh_action=start
7         fi
8         if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
9                 invoke-rc.d #SCRIPT# $_dh_action || #ERROR_HANDLER#
10         else
11                 /etc/init.d/#SCRIPT# $_dh_action || #ERROR_HANDLER#
12         fi
13 fi