Stop daemon when installing/removing the package.

Will be tested in those minutes by Richard.

From: Michael Prokop <mprokop@sipwise.com>
remotes/origin/2.0
Michael Prokop 15 years ago
parent d97e5c21ff
commit ab422569c1

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

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