#!/bin/sh # # $FreeBSD: ports/net/radiusd-cistron/files/radiusd-cistron.sh,v 1.2 2003/12/04 03:24:09 dinoex Exp $ # 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