made sure livesupport-station service stop and kill commands don't

stop the process, even if they fail
This commit is contained in:
maroy 2005-04-22 13:21:55 +00:00
parent 36e7ec2d8d
commit c1de86079a
2 changed files with 8 additions and 8 deletions

View file

@ -105,11 +105,11 @@ case "$1" in
if [ "$1" = "upgrade" ]; then
if command -v invoke-rc.d >/dev/null 2>&1 ; then
invoke-rc.d livesupport-station stop
invoke-rc.d livesupport-station kill
invoke-rc.d livesupport-station stop || true
invoke-rc.d livesupport-station kill || true
else
/etc/init.d/livesupport-station stop
/etc/init.d/livesupport-station kill
/etc/init.d/livesupport-station stop || true
/etc/init.d/livesupport-station kill || true
fi
fi
;;

View file

@ -21,11 +21,11 @@ case "$1" in
remove|upgrade|deconfigure)
# stop and remove the livesupport scheduler daemon
if command -v invoke-rc.d >/dev/null 2>&1 ; then
invoke-rc.d livesupport-station stop
invoke-rc.d livesupport-station kill
invoke-rc.d livesupport-station stop || true
invoke-rc.d livesupport-station kill || true
else
/etc/init.d/livesupport-station stop
/etc/init.d/livesupport-station kill
/etc/init.d/livesupport-station stop || true
/etc/init.d/livesupport-station kill || true
fi
;;
failed-upgrade)