mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
29 lines
319 B
Bash
29 lines
319 B
Bash
|
#!/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
|
||
|
|