diff options
Diffstat (limited to 'security/cyrus-sasl/files/pwcheck.sh')
| -rw-r--r-- | security/cyrus-sasl/files/pwcheck.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/security/cyrus-sasl/files/pwcheck.sh b/security/cyrus-sasl/files/pwcheck.sh new file mode 100644 index 000000000000..17c4597433bb --- /dev/null +++ b/security/cyrus-sasl/files/pwcheck.sh @@ -0,0 +1,28 @@ +#!/bin/sh +# + +PREFIX=/usr/local + +case "$1" in + +start) + if [ -x ${PREFIX}/sbin/pwcheck ] + then + ${PREFIX}/sbin/pwcheck & && echo -n " pwcheck" + fi + ;; + +stop) + if [ -r /var/run/pwcheck.pid ] + then + kill `cat /var/run/pwcheck.pid` && echo -n " pwcheck" + fi + ;; + +*) + echo "usage: $0 {start|stop}" 1>&2 + exit 64 + ;; + +esac + |
