summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2010-10-11 14:09:10 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2010-10-11 14:09:10 (GMT)
commit75a189f7545add2ef39c5fa56bafd84f05d1ef8e (patch)
treead2dd7c35b199d6a11b7b20117d6f48d3b376b34
parentbe4b061af0025f8662c695028d452ccbee51f03e (diff)
downloadserver-75a189f7545add2ef39c5fa56bafd84f05d1ef8e.tar.gz
Make sure kolabd's kolabsrv does know a little something about redhat (solves #4601)
-rw-r--r--kolabd/kolabd/dist_conf/kolabsrv.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/kolabd/kolabd/dist_conf/kolabsrv.in b/kolabd/kolabd/dist_conf/kolabsrv.in
index 2b8b2d2..d253dce 100644
--- a/kolabd/kolabd/dist_conf/kolabsrv.in
+++ b/kolabd/kolabd/dist_conf/kolabsrv.in
@@ -54,6 +54,16 @@ function getServiceName() {
freshclam) SERVICE="clamav-freshclam" ;;
*) SERVICE=$sname
esac
+ elif [ -e /etc/redhat-release ]; then
+ case $sname in
+ openldap) SERVICE="ldap" ;;
+ sasl) SERVICE="saslauthd" ;;
+ imapd) SERVICE="cyrus-imapd" ;;
+ amavisd) SERVICE="amavisd" ;;
+ clamav) SERVICE="clamd.amavisd" ;;
+ spamd) SERVICE="spamassassin" ;;
+ apache2) SERVICE="httpd" ;;
+ *) SERVICE=$sname
fi
}