summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Bos <richard@radoeka.nl>2009-02-25 22:40:51 (GMT)
committerRichard Bos <richard@radoeka.nl>2009-02-25 22:40:51 (GMT)
commit7ef87e63b49900a9de2c22eef2e636cfb731dd02 (patch)
tree83662851e93b402c4ab5f225602acea73c45b85c
parent74f6cc519f033a947b6957158614954fe73c50c4 (diff)
downloadkolab-conf-7ef87e63b49900a9de2c22eef2e636cfb731dd02.tar.gz
stop the services backwards compared with the start sequence
-rw-r--r--conf/dist/kolabsrv.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/conf/dist/kolabsrv.in b/conf/dist/kolabsrv.in
index c0eeb20..3a9bbb3 100644
--- a/conf/dist/kolabsrv.in
+++ b/conf/dist/kolabsrv.in
@@ -91,6 +91,10 @@ if [[ "$SERVICE" != "all" ]]; then
exit 1
fi
+else
+ if [[ "$PARAM" == "stop" ]]; then
+ SERVICES=$(tr " " "\n" <<< "$SERVICES" | tac)
+ fi
fi
[[ -f @sysconfdir@/kolab/profile.sh ]] && . @sysconfdir@/kolab/profile.sh