marcus: server/kolabd/kolabd/dist_conf kolabsrv.in,1.9,1.10
cvs at kolab.org
cvs at kolab.org
Thu Jan 31 15:03:02 CET 2008
Author: marcus
Update of /kolabrepository/server/kolabd/kolabd/dist_conf
In directory doto:/tmp/cvs-serv32187/dist_conf
Modified Files:
kolabsrv.in
Log Message:
* dist_conf/kolabsrv.in: added getServiceName method to map distribution specific rc script names.
Index: kolabsrv.in
===================================================================
RCS file: /kolabrepository/server/kolabd/kolabd/dist_conf/kolabsrv.in,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- kolabsrv.in 22 Oct 2007 18:17:53 -0000 1.9
+++ kolabsrv.in 31 Jan 2008 14:03:00 -0000 1.10
@@ -29,6 +29,21 @@
fi
}
+# map distribution specific rc script names
+function getServiceName() {
+ sname=$1
+ if [ -e /etc/SuSE-release ]; then
+ case $sname in
+ openldap) SERVICE="@LDAP@" ;;
+ sasl) SERVICE="saslauthd" ;;
+ imapd) SERVICE="cyrus" ;;
+ amavisd) SERIVCE="amavis" ;;
+ clamav) SERVICE="clamd" ;;
+ *) SERVICE=$sname
+ esac
+ fi
+}
+
# variables
RC=$1
@@ -48,6 +63,7 @@
RCDIR=@kolab_rcdir@
for SERVICE in $SERVICES; do
+ getServiceName $SERVICE
check $SERVICE
done
More information about the commits
mailing list