ports/net/gnu-radius/files/radiusd.in
Mark Felder 93677d1156 net/gnu-radius: Modernize port
- OptionsNG
- LICENSE
- Whitespace cleanup
- EXAMPLE rewrite
- Remove @unexec
- radiusd.in modification
- files/patch-dbm -> files/patch-radiusd_builddbm.c move and fix

PR:		206457
2016-03-18 14:02:41 +00:00

27 lines
491 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: radiusd
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable radiusd:
#
# radiusd_enable="YES"
. /etc/rc.subr
name=radiusd
rcvar=radiusd_enable
command=%%PREFIX%%/sbin/radiusd
radiusd_config=${radiusd_config:-"%%PREFIX%%/etc/raddb/config"}
required_files=${radiusd_config}
pidfile=/var/run/radiusd.pid
radiusd_enable=${radiusd_enable:-"NO"}
load_rc_config $name
run_rc_command "$1"