postinst: restart initscript instead of just start it

From: Michael Prokop <mprokop@sipwise.com>
remotes/origin/2.0
Michael Prokop 14 years ago
parent e19de5607e
commit c5384734bf

@ -7,9 +7,9 @@ set -e
init_wrapper() {
if [ -x "/etc/init.d/ngcp-mediaproxy-ng-daemon" ]; then
if [ -x "$(which invoke-rc.d 2>/dev/null)" ]; then
invoke-rc.d ngcp-mediaproxy-ng-daemon start || exit $?
invoke-rc.d ngcp-mediaproxy-ng-daemon restart || exit $?
else
/etc/init.d/ngcp-mediaproxy-ng-daemon start || exit $?
/etc/init.d/ngcp-mediaproxy-ng-daemon restart || exit $?
fi
fi
}

Loading…
Cancel
Save