3 # saslauthd SASL AUTH Daemon
5 # chkconfig: 2345 40 60
6 # description: SASL AUTH Daemon
7 # processname: saslauthd
8 # pidfile: /var/state/sasl/mux.pid
12 # Source function library
13 . /etc/rc.d/init.d/functions
16 [ -f /etc/sysconfig/saslauthd ] && . /etc/sysconfig/saslauthd
18 if [ "x$SASL_AUTHMECH" != "x" ] ; then
19 SASLAUTHD_OPTS="$SASLAUTHD_OPTS -a $SASL_AUTHMECH"
22 if [ "x$SASL_RIMAP_HOSTNAME" != "x" ] ; then
23 SASLAUTHD_OPTS="$SASLAUTHD_OPTS -H $SASL_RIMAP_HOSTNAME"
26 if is_yes "$SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS" ; then
27 SASLAUTHD_OPTS="$SASLAUTHD_OPTS -T"
30 # See how we were called.
33 # Check if the service is already running?
34 if [ ! -f /var/lock/subsys/saslauthd ]; then
35 msg_starting salsauthd
36 daemon saslauthd $SASLAUTHD_OPTS
38 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/saslauthd
40 msg_Already_Running saslauthd
46 if [ -f /var/lock/subsys/saslauthd ]; then
47 msg_stopping saslauthd
49 rm -f /var/lock/subsys/saslauthd /var/run/saslauthd.pid >/dev/null 2>&1
51 msg_Not_Running saslauthd
64 msg_Usage "$0 {start|stop|restart|status}"