LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Adding Programs to Startup (https://www.linuxquestions.org/questions/linux-newbie-8/adding-programs-to-startup-12816/)

Atroxic 01-27-2002 10:59 AM

Adding Programs to Startup
 
How do I add programs to startup on a Redhat Linux 7.2 machine?

-Atroxic

billsabub 01-27-2002 12:00 PM

Actually it's fairly simple. You'll just need to create a symbolic link in the appropriate run level.

Assuming you are booting up into an X environment, that's runlevel 5 on your RH box.

So, in the /etc/rc.d/rc5.d directory, you'll create a symbolic link to the file that you want to run like this:

ln -s [full or relative path to the file you want to run] [name of link that will show in rc5.d directory]

Atroxic 01-27-2002 01:10 PM

Starting
 
Ok, here's the problem....
I'm trying to host a mud off of my computer, and when I start it, I need to be in the area directory and type "../src/dystopia 4000" to get it to work, any idea on how to make it work like that on startup?

-Atroxic

acid_kewpie 01-27-2002 06:18 PM

just add whatever lines you feel like to /etc/rc.local


All times are GMT -5. The time now is 08:15 AM.