summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Parent <math.parent@gmail.com>2009-03-17 22:16:48 (GMT)
committerMathieu Parent <math.parent@gmail.com>2009-03-17 22:16:48 (GMT)
commit5789094193372c48db15e5bc8cd6110f8b43ba53 (patch)
treea0a2b7cb51ced2c42e4e77b6884020ec3d83ebb4
parentbe6ef76623778c85c85a062152ac1295d6cd10ba (diff)
downloadkolab-conf-5789094193372c48db15e5bc8cd6110f8b43ba53.tar.gz
dist_conf/kolabsrv.in: add debian flavour
-rw-r--r--conf/dist/kolabsrv.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/conf/dist/kolabsrv.in b/conf/dist/kolabsrv.in
index 3a9bbb3..2b8b2d2 100644
--- a/conf/dist/kolabsrv.in
+++ b/conf/dist/kolabsrv.in
@@ -43,6 +43,17 @@ function getServiceName() {
clamav) SERVICE="clamd" ;;
*) SERVICE=$sname
esac
+ elif [ -e /etc/debian_version ]; then
+ case $sname in
+ openldap) SERVICE="@LDAPD@" ;;
+ sasl) SERVICE="saslauthd" ;;
+ imapd) SERVICE="kolab-cyrus" ;;
+ amavisd) SERVICE="amavis" ;;
+ clamav) SERVICE="clamav-daemon" ;;
+ spamd) SERVICE="spamassassin" ;;
+ freshclam) SERVICE="clamav-freshclam" ;;
+ *) SERVICE=$sname
+ esac
fi
}
@@ -54,7 +65,7 @@ PARAM=$3
# Use the service name as defined in the openpkg environment
# Kolab installations on native distributions, should adap service names
# with the function getServiceName
-SERVICES="@LDAPD@ saslauthd spamd amavisd apache2 freshclam cyrus postfix"
+SERVICES="@LDAPD@ saslauthd spamd amavisd apache2 freshclam imapd postfix"
SERVICES="$SERVICES clamav kolabd"
case $RC in