diff options
Diffstat (limited to 'debian/squeeze/tdebase/debian/tdm-trinity.prerm')
-rw-r--r-- | debian/squeeze/tdebase/debian/tdm-trinity.prerm | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/debian/squeeze/tdebase/debian/tdm-trinity.prerm b/debian/squeeze/tdebase/debian/tdm-trinity.prerm index 6247adb1f..c17a2451f 100644 --- a/debian/squeeze/tdebase/debian/tdm-trinity.prerm +++ b/debian/squeeze/tdebase/debian/tdm-trinity.prerm @@ -86,11 +86,17 @@ if grep -qs ^restart-on-upgrade /etc/trinity/tdm/tdm.options || fi if [ -n "$STOP" ]; then - if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then - invoke-rc.d tdm-trinity stop || true + if [ -x "`which service 2>/dev/null`" ]; then + service tdm stop || true else - /etc/init.d/tdm-trinity stop || true + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d tdm stop || true + else + /etc/init.d/tdm stop || true + fi fi + [ ! -e /var/run/tdm-trinity.upgrade ] || + rm -f /var/run/tdm-trinity.upgrade else if [ "$1" = "upgrade" -o "$1" = "failed-upgrade" ]; then touch /var/run/tdm-trinity.upgrade @@ -98,7 +104,7 @@ else fi if [ -n "$REMOVING" ]; then - rm -f /etc/init.d/tdm-trinity + rm -f /etc/init.d/tdm [ ! -e /etc/init/tdm-trinity.conf ] || \ rm -f /etc/init/tdm-trinity.conf fi @@ -178,4 +184,6 @@ if [ "$1" = "remove" -o "$1" = "deconfigure" ]; then fi fi +#DEBHELPER# + exit 0 |