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)
commit33558189fcd27642a5f2e1f1c981a716433f8c85 (patch)
tree1378e89ee350d9f81182aa2fb3fadd2316f8a896
parent3e0bf15c82bab7391d8ceb0bc43756b918e00eac (diff)
downloadkolab-conf-33558189fcd27642a5f2e1f1c981a716433f8c85.tar.gz
Make sure kolabd's kolabsrv does know a little something about redhat (solves #4601)
-rw-r--r--conf/dist/kolabsrv.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/conf/dist/kolabsrv.in b/conf/dist/kolabsrv.in
index 2b8b2d2..d253dce 100644
--- a/conf/dist/kolabsrv.in
+++ b/conf/dist/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
}