contrib/DEBIAN: modified some package script

- remove support for upstart
- stop running fhem process in prerm before userdel
- prevent fhem package from being overwrittten by apt-get-upgrade

git-svn-id: https://svn.fhem.de/fhem/trunk@6712 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2014-10-08 18:17:37 +00:00
parent aa0e43c75e
commit 71868eb7ae
3 changed files with 13 additions and 12 deletions

View File

@@ -9,6 +9,13 @@ fi
chown -R fhem:root /opt/fhem
# prevent package fhem from being
# upgraded by apt-get upgrade
apt-mark hold fhem
echo "fhem hold" | dpkg --set-selections
# set up of autostart
# Sysvinit; upstart no longer supported

View File

@@ -10,11 +10,7 @@ fi
if test -f /etc/init/fhem.conf; then
rm /etc/init/fhem.conf
fi
if test -f /etc/init.d/fhem; then
update-rc.d fhem remove
rm /etc/init.d/fhem
fi
if test ! -x /sbin/initctl; then
update-rc.d -f fhem remove
fi

View File

@@ -2,10 +2,8 @@
set -e
if pgrep fhem.pl >/dev/null; then
if test -x /sbin/initctl; then
initctl stop fhem
else
invoke-rc.d fhem stop
fi
fi
# stop fhem if running
invoke-rc.d fhem stop
# remove fhem autostart
update-rc.d fhem remove