diff options
author | Johannes Winkelmann <jw@smts.ch> | 2006-02-23 15:26:10 +0000 |
---|---|---|
committer | Johannes Winkelmann <jw@smts.ch> | 2006-02-23 15:26:10 +0000 |
commit | bdea7e6c6a535e57a07d376a3139d0788efaaa41 (patch) | |
tree | 1a7334c99fa39b1ad1a7a35c113b18cb0d92413c /cyrus-sasl/saslauthd | |
download | opt-bdea7e6c6a535e57a07d376a3139d0788efaaa41.tar.gz opt-bdea7e6c6a535e57a07d376a3139d0788efaaa41.tar.xz |
create branch for 2.2
Diffstat (limited to 'cyrus-sasl/saslauthd')
-rw-r--r-- | cyrus-sasl/saslauthd | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/cyrus-sasl/saslauthd b/cyrus-sasl/saslauthd new file mode 100644 index 000000000..22b0d0f21 --- /dev/null +++ b/cyrus-sasl/saslauthd @@ -0,0 +1,33 @@ +#!/bin/bash +# +# /etc/rc.d/saslauthd: start/stop sasl authentication daemon +# + +SASLAUTHD_PID=/var/sasl/saslauth/saslauthd.pid + +AUTHMECH=shadow + +case $1 in + start) + /usr/sbin/saslauthd -a $AUTHMECH + ;; + stop) + if [ -f $SASLAUTHD_PID ]; then + kill `head -1 $SASLAUTHD_PID` + rm $SASLAUTHD_PID + else + killall -q /usr/sbin/saslauthd + fi + ;; + restart) + $0 stop + sleep 2 + $0 start + ;; + *) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file + |