From 1e8003c16eada5b77df68c6b47325b6906fbdda1 Mon Sep 17 00:00:00 2001 From: Nachtfalkeaw Date: Sun, 28 Aug 2011 13:11:31 +0300 Subject: Killing existing radiusd processes before starting "radiusd -s". This should prevent "Error: There appears to be another RADIUS server running on the authentication port 1812" after a reboot of pfsense. This works in my scenario and perhaps resolves problems posted in "Bug #1218" --- config/freeradius.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/freeradius.inc') diff --git a/config/freeradius.inc b/config/freeradius.inc index 6e81f0a0..a50f6c6d 100644 --- a/config/freeradius.inc +++ b/config/freeradius.inc @@ -26,8 +26,8 @@ function freeradius_install_command() { $rcfile = array(); $rcfile['file'] = 'radiusd.sh'; - $rcfile['start'] = 'radiusd -s &'; - $rcfile['stop'] = 'killall radiusd'; + $rcfile['start'] = 'killall -9 radiusd ; sleep 5 && radiusd -s &';; + $rcfile['stop'] = 'killall -9 radiusd ; sleep 5'; conf_mount_rw(); write_rcfile($rcfile); conf_mount_ro(); -- cgit v1.2.3