mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
2024ed0f43
PR: ports/7789 Submitted by: Hans Huebner <hans@artcom.de>
28 lines
328 B
Bash
28 lines
328 B
Bash
#!/bin/sh
|
|
#
|
|
PREFIX=%%PREFIX%%
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
if [ -x ${PREFIX}/cyrus/bin/pwcheck ]
|
|
then
|
|
${PREFIX}/cyrus/bin/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
|
|
|