aboutsummaryrefslogtreecommitdiff
path: root/net/freeradius2/files/radiusd.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/freeradius2/files/radiusd.sh.in')
-rw-r--r--net/freeradius2/files/radiusd.sh.in17
1 files changed, 16 insertions, 1 deletions
diff --git a/net/freeradius2/files/radiusd.sh.in b/net/freeradius2/files/radiusd.sh.in
index 9ef0556b3716..eed2b264c827 100644
--- a/net/freeradius2/files/radiusd.sh.in
+++ b/net/freeradius2/files/radiusd.sh.in
@@ -18,7 +18,14 @@ rcvar=`set_rcvar`
load_rc_config $name
command=%%PREFIX%%/sbin/radiusd
-pidfile=/var/run/radiusd/radiusd.pid
+
+# In debug mode, radiusd doesn't create a pid file, so comment pidfile and
+# let rc.subr use a process check on procname (which defaults to command).
+#pidfile=/var/run/radiusd/radiusd.pid
+
+extra_commands="reload debug"
+debug_cmd="radiusd_debug"
+
# The radiusd_config parameter is now obsolete. Instead, derive the
# configuration directory name from radiusd_flags if possible, otherwise
@@ -30,4 +37,12 @@ required_files="${required_dirs}/radiusd.conf"
radiusd_enable=${radiusd_enable-"NO"}
+
+radiusd_debug()
+{
+ radiusd_flags="-X ${radiusd_flags}"
+ run_rc_command start
+}
+
+
run_rc_command "$1"