LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How Do I Get A Program to Start at the Machine Startup (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-get-a-program-to-start-at-the-machine-startup-297146/)

andy1.52 03-03-2005 10:04 AM

How Do I Get A Program to Start at the Machine Startup
 
I'm running a folding program that runs off of idle cpu time so it doesn't effect the computer's overall performance. But anyway I want this program to start when I boot up my machine and I have no idea how to do this. I am running mandrake 10.1 official.

Brian Knoblauch 03-03-2005 10:33 AM

You can do that by placing a startup script in the appropriate runlevel directory under /etc/rc.d. If you're running graphical, that's runlevel 5, so place a script in /etc/rc.d/rc5.d. Scripts starting with "S" are for startup, "K" is for shutdown. They're executed in numerical order, so you normally would create one call "S99myprogram" for startup, and a friendly shutdown script as "K00myprogram".


All times are GMT -5. The time now is 07:38 AM.