mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
b901a9df67
PR: 16130 Submitted by: maintainer
32 lines
359 B
Bash
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
|
|
|