Results 1 to 7 of 7
I'm trying to autostart an Until URU server. I copied the script used to start the server to the /etc/rc.d/ directory. I used chmod +x to make it executable. I ...
- 10-21-2004 #1Just Joined!
- Join Date
- Sep 2004
- Location
- Lebanon, Armpit, Oregon, USA
- Posts
- 18
Can't get program to autostart
I'm trying to autostart an Until URU server. I copied the script used to start the server to the /etc/rc.d/ directory. I used chmod +x to make it executable. I can use the script to start and stop the server, so I know the script itself is OK. When I restart the machine, the program does not start. Am I missing something and is there more I need to do to make this program autostart?
- 10-21-2004 #2
You need to add a line executing that script to one of the initialization scripts. It would either go in rc.4 or rc.M, depending on whether you boot to init 4 or init 3.
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
- 10-21-2004 #3Linux Newbie
- Join Date
- Mar 2003
- Location
- Istanbul/Türkiye
- Posts
- 246
Actually you can add it to your /etc/rc.d/rc.local instead of rc.M.
I suggest rc.local file for your own scripts..Just a Newbie....Looking 4 Info....
- 10-22-2004 #4Just Joined!
- Join Date
- Sep 2004
- Location
- Lebanon, Armpit, Oregon, USA
- Posts
- 18
You can't just put the file in rc.d? I though that everything in that directory that was executable would automatically run, shows you how much I know...lol. OK, I'll add a line to rc.local and see what happens.
- 10-24-2004 #5Linux Newbie
- Join Date
- Mar 2003
- Location
- Istanbul/Türkiye
- Posts
- 246
Hmm i think that is not true. Not every file is automatically starts when the machine starts if you dont add those files to rc.M like sarumont told.This is why i suggest adding your script to rc.local. But if your script is too long like the other files you can put it to rc.d and add it to rc.M..
Just a Newbie....Looking 4 Info....
- 10-24-2004 #6Just Joined!
- Join Date
- Sep 2004
- Location
- Lebanon, Armpit, Oregon, USA
- Posts
- 18
I added a line to rc.local that executes the original script in it's original location, and that seems to work fine. Learn something new every day
- 10-26-2004 #7Linux Newbie
- Join Date
- Mar 2003
- Location
- Istanbul/Türkiye
- Posts
- 246
For linux, the alternatives are almost endless. So, you can find a way easily for your problem. This is why i like Linux
Just a Newbie....Looking 4 Info....


Reply With Quote
