Browse Source

stop AND restart daemon when necessary

git.mgm/mediaproxy-ng/2.0
Richard Fuchs 15 years ago
parent
commit
cd2f8ca351
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      debian/ngcp-mediaproxy-ng-kernel-dkms.postinst

+ 3
- 3
debian/ngcp-mediaproxy-ng-kernel-dkms.postinst View File

@ -15,10 +15,10 @@ if [ "x${isadded}" = "x" ] ; then
fi
if [ "$1" = 'configure' ] ; then
# make sure it's not running
/etc/init.d/ngcp-mediaproxy-ng-daemon stop || true
dkms build -m "$name" -v "$version" && dkms install -m "$name" -v "$version" || true
# try to start the daemon
/etc/init.d/ngcp-mediaproxy-ng-daemon start || true
fi
#DEBHELPER#


Loading…
Cancel
Save