Browse Source

postinst: restart initscript instead of just start it

From: Michael Prokop <mprokop@sipwise.com>
git.mgm/mediaproxy-ng/2.0
Michael Prokop 14 years ago
parent
commit
c5384734bf
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      debian/ngcp-mediaproxy-ng-daemon.postinst

+ 2
- 2
debian/ngcp-mediaproxy-ng-daemon.postinst View File

@ -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