1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/net/radiusd-cistron/files/radiusd-cistron.sh
2003-12-04 03:24:09 +00:00

23 lines
329 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
case "$1" in
start)
[ -x %%PREFIX%%/sbin/radiusd ] &&
%%PREFIX%%/sbin/radiusd -y &&
echo -n ' radiusd'
;;
stop)
if test -e /var/run/radiusd.pid
then
kill `head -1 /var/run/radiusd.pid`
rm -f /var/run/radiusd.pid
fi
;;
*)
echo "Usage: ${0##*/} { start | stop }" >&2
exit 64
;;
esac