Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running a program from bootup

Status
Not open for further replies.

SaltyDuke

Programmer
Sep 18, 2002
140
IE
Hello!

i have several homemade scripts running on my SuSE Linux computer. They basically hang out in the backround and keep my computer from being lonley when i'm away :)

However, when my system goes down and i restart the computer i have to restart the scripts one by one!!

Now... i don't think that's any good! how do i get Linux to start these programs automatically on bootup? I know Linux can do this because i use inet.d (is that right) to start services like Apache, so how (where?) do i tell Linux to run my scripts?

any help woul be most appreciated!

thanx a million
TheSaltyDuke

[pipe]
 

Take a look at the scripts in /etc/init.d. Copy one of them, edit it to suit your needs, put it back in /etc/init.d with a different name, then use chkconfig --add to add it to the boot sequence.
 
If you have a bunch of scripts, you have a couple options. One is to use chkconfig as ericbrunson suggests or accomplish about the same thing by listing your scripts in /etc/rc.d/rc.local. This script gets read after all other init scripts have been started.
 
thanx a million!

i now have a "lazy-boot-up" system :)

AND i understand how Linux boots up...a double bonus!!


thanks again
TheSaltyDuke

[pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top