aboutsummaryrefslogtreecommitdiffstats
path: root/security/cyrus-sasl/files/pwcheck.sh
blob: 17c4597433bbaba6c0de659c8c55911094e41fd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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