summaryrefslogtreecommitdiff
path: root/cyrus-sasl/saslauthd
blob: 22b0d0f21909b73264d7e8e3680df8344f2e17de (plain)
    1 #!/bin/bash
    2 # 
    3 # /etc/rc.d/saslauthd: start/stop sasl authentication daemon
    4 #
    5 
    6 SASLAUTHD_PID=/var/sasl/saslauth/saslauthd.pid
    7 
    8 AUTHMECH=shadow
    9 
   10 case $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 		;;
   30 esac
   31 
   32 # End of file

Generated by cgit