how to get radius to start after a reboot automatically
I have installed FreeRadius to a Debian Linux server.
I have configured an account called Support to run the Radius as I didnít want Root to be the user to run this.
I want Radius to start up automatically after the system is rebooted but I donít know how to do this. I am new to Linux so please bare with me. If the system is rebooted, is it possible for the Support account to be logged in automatically? Is there a script I can create to automatically login the Support account? This may not be secure but it has been requested. Also the main question is after a reboot can the Radius be configured to automatically start without the need for someone to login? So if the system is rebooted and then goes back to login prompt, can the Radius then be running?
I have had a good search about scripts but with my limited knowledge it isnít too easy.
So far Iíve read it says to create a script in /etc/init.d which Iíve done and named start-my-radius.sh I think Iíve made It execuatable by chmod 777, if thatís right? The script looks like this
/usr/local/sbin/radiusd -a /usr/local/var/log/radius/radacct/ -d /usr/local/etc/raddb/ -l /usr/local/var/log/radius/radius.log
But I donít know if thatís even right? The radiusd is located in the /usr/local/sbin/ and the radacct and radius.log is located in / usr/local/var/log/radius
Some stuff I have read says it needs to link into /etc/rc.d but there isnít a rc.d directory, I have other rc directories which are rc1.d Ė rc6.d.
After reading it also said something about using rc.radiusd which will automatically start Radius after a reboot, but again I cannot understand exactly what I need to do.
Please can someone help out with this and let me know if I am on the right track? Will the start-my-radius.sh script work after the system is rebooted without someone actually login and how do I get it to work?
Please explain clearly as this is all a bit technical for my liking and not understanding it well!