1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00

- add restart target

- fix wait subtarget
Suggested by:	ache
This commit is contained in:
Dirk Meyer 2005-05-22 21:37:49 +00:00
parent 702edbac8a
commit 559d33250a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=135887

View File

@ -27,7 +27,7 @@ stop)
rm -f /var/run/sid-filter.pid
;;
wait)
while ps -ax -o pid,command | fgrep sid-filter
while ps -ax -o command | grep ^%%PREFIX%%/libexec/sid-filter
do
echo "please wait"
sleep 1
@ -41,8 +41,13 @@ reload)
echo " sid-filter: not running" 2>&1
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: ${0##*/}: { start | stop | reload }" >&2
echo "Usage: ${0##*/}: { start | stop | reload | restart }" >&2
exit 64
;;
esac