3 # saslauthd SASL AUTH Daemon
5 # chkconfig: 2345 40 60
6 # description: SASL AUTH Daemon
7 # processname: saslauthd
8 # pidfile: /var/lib/sasl2/saslauthd.pid
12 # Source function library
13 . /etc/rc.d/init.d/functions
16 [ -f /etc/sysconfig/saslauthd ] && . /etc/sysconfig/saslauthd
18 if [ "$SASL_AUTHMECH" ]; then
19 SASLAUTHD_OPTS="$SASLAUTHD_OPTS -a $SASL_AUTHMECH"
22 if [ "$SASL_RIMAP_HOSTNAME" ]; then
23 SASLAUTHD_OPTS="$SASLAUTHD_OPTS -O $SASL_RIMAP_HOSTNAME"
26 if is_yes "$SASLAUTHD_CACHE"; then
27 SASLAUTHD_OPTS="$SASLAUTHD_OPTS -c"
30 if [ "$SASLAUTHD_THREADS" ]; then
31 SASLAUTHD_OPTS="$SASLAUTHD_OPTS -n $SASLAUTHD_THREADS"
35 if [ ! -f /var/lock/subsys/saslauthd ]; then
36 msg_starting saslauthd
37 daemon /usr/sbin/saslauthd $SASLAUTHD_OPTS
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/saslauthd
41 msg_already_running saslauthd
46 if [ -f /var/lock/subsys/saslauthd ]; then
47 msg_stopping saslauthd
49 rm -f /var/lock/subsys/saslauthd /var/lib/sasl2/saslauthd.pid >/dev/null 2>&1
51 msg_not_running saslauthd
56 if [ -f /var/lock/subsys/saslauthd ]; then
60 msg_not_running saslauthd
66 # See how we were called.
89 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"