CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
libcap: fixed AR and RANLIB usage
[attic/ports/opt-cross.git] / cyrus-sasl / saslauthd
CommitLineData
579ae43e
JB
1#!/bin/bash
2#
3# /etc/rc.d/saslauthd: start/stop sasl authentication daemon
4#
5
6SASLAUTHD_PID=/var/sasl/saslauth/saslauthd.pid
7
8AUTHMECH=shadow
9
10case $1 in
11 start)
12 /usr/sbin/saslauthd -a $AUTHMECH
13 ;;
14 stop)
15 if [ -f $SASLAUTHD_PID ]; then
16 kill `head -1 $SASLAUTHD_PID`
17 rm $SASLAUTHD_PID
18 else
19 killall -q /usr/sbin/saslauthd
20 fi
21 ;;
22 restart)
23 $0 stop
24 sleep 2
25 $0 start
26 ;;
27 *)
28 echo "usage: $0 [start|stop|restart]"
29 ;;
30esac
31
32# End of file
33