Browse Source

Stop daemon when installing/removing the package.

Will be tested in those minutes by Richard.

From: Michael Prokop <mprokop@sipwise.com>
git.mgm/mediaproxy-ng/2.0
Michael Prokop 15 years ago
parent
commit
ab422569c1
2 changed files with 7 additions and 1 deletions
  1. +4
    -1
      debian/ngcp-mediaproxy-ng-kernel-dkms.postinst
  2. +3
    -0
      debian/ngcp-mediaproxy-ng-kernel-dkms.prerm

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

@ -15,7 +15,10 @@ if [ "x${isadded}" = "x" ] ; then
fi
if [ "$1" = 'configure' ] ; then
dkms build -m "$name" -v "$version" && dkms install -m "$name" -v "$version" || true
# 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
fi
#DEBHELPER#


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

@ -8,6 +8,9 @@ name=ngcp-mediaproxy-ng
version=`dpkg-query -W -f='${Version}' "$package" \
|rev|cut -d- -f2-|rev|cut -d':' -f2|tr -d "\n"`
# make sure it's not running
/etc/init.d/ngcp-mediaproxy-ng-daemon stop || true
dkms remove -m "$name" -v "$version" --all || true
#DEBHELPER#


Loading…
Cancel
Save