FreeRadus 1.1.8 pkg v1.0.5 - Reload new config
-
Wrote a local script that will change users password in the file 'users' at '/usr/local/etc/raddb/'.
Now, with the same script i am writing i want to initiate a 'Reload' of FreeRADIUS, so that it will learn the new values within the file 'users'. But i can't find the way how to do a reload or a restart. The following command doesn't work:
/usr/local/etc/rc.d/radiusd onerestartTried the following locations:
/usr/local/etc/rc.d/radiusd
/usr/local/sbin/radiusdNow, or i am just miss-using the implementation of FreeRADIUS and misunderstanding its working and have to use FreeRADIUS 2 and make these changes in xxxSQL database. Actually it seems more logical to use xxxSQL
-
radiusd onerestart seems to first work on freeradius2
On freeradius1 package you should look at this file:
https://github.com/pfsense/pfsense-packages/blob/master/config/freeradius.incI found this:
$rcfile['file'] = 'radiusd.sh'; $rcfile['start'] = 'logger -f /var/log/system.log "freeRADIUS rc_start: killing all existing radiusd processes" && killall -9 radiusd ; sleep 5 && logger -f /var/log/system.log "freeRADIUS rc_start: starting radiusd " ; radiusd -s &'; $rcfile['stop'] = 'logger -f /var/log/system.log "freeRADIUS rc_stop: killing all existing radiusd processes" && killall -9 radiusd ; sleep 5 && logger -f /var/log/system.log "freeRADIUS rc_stop: radiusd has quit"';
So it looks like:
Stopping:
killall -9 radiusd
Starting:
radiusd -s &
-
Thank you for your input.
My issue with this solution is that it takes to much time, to restart the whole process. If it is not possible with FreeRadius, then i guess have to use Cistron Radius, who can (reload configuration, instantly). But then i have to add myself a GUI fir adding users (nice, another project)
-
Why don't you use freeradius2 which restarts much faster with
radiusd onerestart
Freeradius2 can do everything freeradius1 can and more.