1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/security/cyrus-sasl2/files/pwcheck.sh
Steve Price b901a9df67 Update to version 1.5.15.
PR:		16130
Submitted by:	maintainer
2000-01-24 05:22:22 +00:00

32 lines
359 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
PREFIX=%%PREFIX%%
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"
rm /var/run/pwcheck.pid
fi
;;
*)
echo "usage: $0 {start|stop}" 1>&2
exit 64
;;
esac