LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-30-2010, 10:54 AM   #1
jenniekingsland
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Rep: Reputation: 0
Trying to get radius to start after a reboot


Hi,

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

#!/bin/sh
/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!
 
Old 10-01-2010, 03:50 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
How did you install the package? Did you use yum to install? You install freeradius, right?
In fedora you should be able to use service command to start the server.
Like service radiusd start and chkconfig should make it run after reboot without your intervention.
chkconfig --add radiusd
chkconfig radiusd on
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get VNC to start on Reboot? niner710 Linux - Newbie 2 05-26-2008 08:09 PM
NICs do not start on reboot Padawan.AVT Linux - Networking 2 01-30-2008 08:51 AM
network doesn't start on reboot wayneddsn Linux - Networking 4 04-08-2006 06:52 AM
Xserver won't start after reboot amishdisco Linux - Software 11 12-29-2004 06:20 AM
X won't start after reboot kodiakmook Linux - General 3 12-21-2001 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration