aboutsummaryrefslogtreecommitdiffstats
path: root/del-service
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-30 16:58:08 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-30 16:58:08 +0000
commit06a88f4597dc1165ef08bd82d8c2a1ef59431504 (patch)
treeb94f1c70eb80f20b760cbfc610355b5a733c5f09 /del-service
parent875016b54e6b9b36092dfbfb8c773f6b59264454 (diff)
downloadrpm-helper-06a88f4597dc1165ef08bd82d8c2a1ef59431504.tar
rpm-helper-06a88f4597dc1165ef08bd82d8c2a1ef59431504.tar.gz
rpm-helper-06a88f4597dc1165ef08bd82d8c2a1ef59431504.tar.bz2
rpm-helper-06a88f4597dc1165ef08bd82d8c2a1ef59431504.tar.xz
rpm-helper-06a88f4597dc1165ef08bd82d8c2a1ef59431504.zip
do not stop service during install
(or else shorewall will be stopped because moved in another package, making the install hang for a while)
Diffstat (limited to 'del-service')
-rwxr-xr-xdel-service4
1 files changed, 3 insertions, 1 deletions
diff --git a/del-service b/del-service
index f13aea6..5f62689 100755
--- a/del-service
+++ b/del-service
@@ -20,7 +20,9 @@ num=$2 # number of packages installed
srv=$3 # name of the service
if [ $num = 0 ]; then
- /sbin/service $srv stop > /dev/null || :
+ if [ -z "$DURING_INSTALL" ]; then
+ /sbin/service $srv stop > /dev/null || :
+ fi
/sbin/chkconfig --del $srv
fi