diff options
author | martti <martti@pkgsrc.org> | 2001-10-11 09:57:20 +0000 |
---|---|---|
committer | martti <martti@pkgsrc.org> | 2001-10-11 09:57:20 +0000 |
commit | 12a00a67c7bd1f664e82e21bc08544da6b42d24c (patch) | |
tree | 1242dfcfbb7a468471e35dfdc0c41c67bb000e90 /net/radiusd-cistron/files | |
parent | fd11b83d3dbc5b3dd6892589f48c65101d2f85be (diff) | |
download | pkgsrc-12a00a67c7bd1f664e82e21bc08544da6b42d24c.tar.gz |
Added radiusd-cistron which was submitted in pkg/13274.
Diffstat (limited to 'net/radiusd-cistron/files')
-rw-r--r-- | net/radiusd-cistron/files/radiusd.sh.tmpl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net/radiusd-cistron/files/radiusd.sh.tmpl b/net/radiusd-cistron/files/radiusd.sh.tmpl new file mode 100644 index 00000000000..f12114eedce --- /dev/null +++ b/net/radiusd-cistron/files/radiusd.sh.tmpl @@ -0,0 +1,21 @@ +#!/bin/sh +# +# $NetBSD: radiusd.sh.tmpl,v 1.1 2001/10/11 09:57:21 martti Exp $ +# + +PREFIX=!!PREFIX!! + +case "$1" in + start) + ${PREFIX}/sbin/radiusd -y && echo -n ' radiusd' + ;; + stop) + if [ -f /var/run/radiusd.pid ]; then + kill `cat /var/run/radiusd.pid` && echo -n ' radiusd' + rm -f /var/run/radiusd.pid + fi + ;; + *) + echo "$0 start | stop" + ;; +esac |