Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > SuSE Linux Help > How do I add scripts to the system startup?
 SuSE Linux Help   For help and discussions related to SuSE Linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 01-26-2005   #1 (permalink)
Just Joined!
 
Join Date: Oct 2004
Location: Toronto
Posts: 12
Send a message via MSN to RobCote
How do I add scripts to the system startup?

After searching for MONTHS on how the hell to have a freaking program run on startup i am fed up! i cannot find a simple solution ANYWHERE on ANY forum, everything is completely not user friendly. i see people crying every where that they are newbs and they get answers to their problems are are barely readable. I'm pulling my hair out trying to get a couple programs to just run on startup. i don't care how its done i just want it to do it and i want a SIMPLE COMPLETE DOORKNOB STEP BY STEP answer please please please. I am running:
Suse 9.1 pro

I want to run various scripts located in
/usr/local/bin/{their dir}
CS soure server script (its a shell script i use to start the server)
hlstats.pl (pearl script used for keeping track of stats on the server)
noip2 (dynamic dns updater software)
ventrilo (voip server)

ps. Pardon my madness i hope i haven't shot myself in the foot by complaining like i did, if i can get a solution i will be forever greatfull

**MOD EDIT: Topic changed to something less hostile with no yelling in it. - l_n
RobCote is offline  

Reply With Quote
Old 01-26-2005   #2 (permalink)
Linux Guru
 
Join Date: Mar 2003
Location: Wisconsin
Posts: 1,904
Send a message via Yahoo to jeremy1701
Add the path to the apporpriate script at the end /etc/rc.d/init.d. Note that it may be different on Suse, I'm not sure of the exact location. The file you want to modify is init.d.
Jeremy
__________________
Registered Linux user #346571
"All The Dude ever wanted was his rug back" - The Dude
jeremy1701 is offline   Reply With Quote
Old 01-26-2005   #3 (permalink)
Just Joined!
 
Join Date: Oct 2004
Location: Toronto
Posts: 12
Send a message via MSN to RobCote
I don't have this init.d file.
RobCote is offline   Reply With Quote
Old 01-26-2005   #4 (permalink)
Super Moderantor
 
techieMoe's Avatar
 
Join Date: Aug 2004
Location: Texas
Posts: 9,148
I believe init.d is in the /etc/ directory on SuSE.
__________________
Registered Linux user #270181
TechieMoe's Tech Rants
techieMoe is offline   Reply With Quote
Old 01-26-2005   #5 (permalink)
Linux Guru
 
Join Date: Mar 2003
Location: Wisconsin
Posts: 1,904
Send a message via Yahoo to jeremy1701
Do you have /etc/init.d/boot.local?

Jeremy
__________________
Registered Linux user #346571
"All The Dude ever wanted was his rug back" - The Dude
jeremy1701 is offline   Reply With Quote
Old 01-26-2005   #6 (permalink)
Linux Engineer
 
big_k105's Avatar
 
Join Date: May 2003
Location: Fargo, ND
Posts: 901
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
suse 8.2 has /etc/init.d/boot.local and that looks to be the place where you would add the commands you want to run at start up
__________________
BIG K aka Kyle
Programming Forums
www.kylekonline.com
Please don\'t PM me for help-- ask in the forums instead!
big_k105 is offline   Reply With Quote
Old 01-26-2005   #7 (permalink)
Just Joined!
 
Join Date: Oct 2004
Location: Toronto
Posts: 12
Send a message via MSN to RobCote
Getting closer, i put them in boot.local, only one of them worked though,
it think its beacause its not a shell script, and is an actual program
what do i do if it is a shell script?
and a pearl script?
RobCote is offline   Reply With Quote
Old 01-26-2005   #8 (permalink)
Just Joined!
 
Join Date: Oct 2004
Location: Toronto
Posts: 12
Send a message via MSN to RobCote
some are still not running, no does boot.local run to early for some of these to work? because they would need to start whe nthe server has finished booting. they need to be the last things to run after a reboot
RobCote is offline   Reply With Quote
Old 01-26-2005   #9 (permalink)
Linux Guru
 
loft306's Avatar
 
Join Date: Oct 2003
Location: The DairyLand
Posts: 1,666
you can actualy put the commands that start tha app's in to any script tha runs at startup in gento we use /etc/conf.d/local.start look for a local start or the like in suse or maybe /etc/init.d/local and see if it tells u where to put them might also be /etc/rc??/start or local
__________________
~Mike ~~~ Forum Rules
Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
http://loft306.org
loft306 is offline   Reply With Quote
Old 01-27-2005   #10 (permalink)
Just Joined!
 
Join Date: Oct 2004
Location: Toronto
Posts: 12
Send a message via MSN to RobCote
okay I got it to work using a work around with a rc.local file
i had to create a file that calls the scripts (rc.local) and i put it in /etc/init.d/
then you have to create a symlink in rcX.d that calls the rc.local script,
since my problem was it was executing before network drivers and such were ready, i had to name the link S99rclocal (S99 being the order of the scripts run on startup. i put this file in rc3.d so that its the last thing executed on a runlevel3 bootup.

I got my scripts to startup in seperate 'screens' that can be attached and detached using the screen -x XXX command,
Either way it was a nasty process but it works.
RobCote is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Free Network Mapping Tool for Microsoft® Office Visio® Professional 2007 Users
Don't map your network by hand – let LANsurveyor Express for Microsoft Visio Professional 2007 automatically create network diagrams for you.
subscribe
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say.
subscribe

Safe, Secure Backup


All times are GMT. The time now is 10:00 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2