LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2005, 06:51 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 30
startup script when reboot


I want to startup some services / database when/after reboot the server , where can I add the script to let the server to run when reboot ? thx
 
Old 08-31-2005, 06:54 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 63
The startup scripts on reboot are the same as those on a normal boot. Those depend on the distribution you use, hence I suggest you replace the fake "fasf" you used with the distribution you really use.

Yves.
 
Old 08-31-2005, 10:51 PM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
I use RH linux , could suggest how can I set it ? thx
 
Old 09-01-2005, 07:17 AM   #4
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 63
I use Mandriva myself, which is close enough to RH as far as I know. So probably you could launch your script from the /etc/rc.d/rc.local file.

Yves.
 
Old 09-10-2005, 10:40 AM   #5
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
thx replies,

I check with google , it said change /etc/inittab is also OK ? if yes , what is the difference between them ? thx
 
Old 09-10-2005, 06:19 PM   #6
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 63
While /etc/inittab is possible technically speaking, it is not the way to do. inittab doesn't work exactly the same, and is almost never touched.

Yves.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 02:53 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 09:40 PM
startup backup agent automatically when reboot ashley75 Linux - General 1 07-18-2005 03:39 PM
Reboot on startup TBomb Slackware 8 08-28-2004 11:24 PM
Slackware 9 Reboot on Startup miketang2k3 Slackware 1 04-01-2003 07:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration