mirror of
https://git.freebsd.org/ports.git
synced 2025-06-25 14:40:32 -04:00
- OptionsNG - LICENSE - Whitespace cleanup - EXAMPLE rewrite - Remove @unexec - radiusd.in modification - files/patch-dbm -> files/patch-radiusd_builddbm.c move and fix PR: 206457
27 lines
491 B
Bash
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"
|