LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-02-2004, 11:46 PM   #1
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Rep: Reputation: 30
Configuring start up and boot programs


I have checked around this site with no success. I am hoping to find a way to configure my boot so that I can load programs that I need, like the ones that are already auto loaded. I need to start mysql and tomcat before I start httpd so my server can get back if it happens to shutdown. Is there an easy way to do this? Thanks.
 
Old 02-03-2004, 01:12 AM   #2
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
I don't really understand what you are asking, but if you are trying to start applications when your system boots, try running, (as root), ntsysv from your command line. You will then see a list of options that you can select, or de-select to have them start-up when your system starts.

Does that help at all?

-Josh
 
Old 02-03-2004, 01:55 AM   #3
bobthebaritone
Member
 
Registered: Aug 2003
Location: Newington, Sydney, Australia
Distribution: Fedora Whitebox 4 Ubuntu
Posts: 40

Rep: Reputation: 15
G'day techrolla,

The system boot process is well documented. Check out chkconfig command. Your system's boot is controlled by your rc.d directories and the runlevels that is appropriate for the services.

Ter_roshak - I bet that's not WA - Western Australia where you live!

Cheers
 
Old 02-03-2004, 03:07 AM   #4
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
All you really need to do is change the names of the links in your runlevel 5 (assuming you start the gui on boot) startup directory. Here is a brief example:

Open up your /etc/rc.d/rc5.d directory and look for the mysql, tomcat, and httpd links. They will start something like S52httpd, S53tomcat, S54mysql or something along those lines. You just have to rename them to change the order in which they boot. ie- S52 starts before S53 and K52 is killed before K53 when you are changing runlevels or shutting down. This should help you do what you want.

Links:
http://www.justlinux.com/nhf/Booting.../SysVinit.html
http://www.faqs.org/docs/linux_scrat...r07/usage.html
 
Old 02-03-2004, 08:07 AM   #5
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Original Poster
Rep: Reputation: 30
Hey thanks, I actually tried something different. I took a script and put it into /etc/init.d and named it tomcat and then added it to chkconfig --add tomcat. But how do I control the order they boot? I need to boot tomcat before httpd so the jsp connector works right. Thanks.
 
Old 02-03-2004, 09:01 AM   #6
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
No, bobthebaritone, its not Western Aust(something or other), its Washington State, in the United States....<G>.

-Josh
 
Old 02-03-2004, 02:28 PM   #7
Unseen
Member
 
Registered: Feb 2003
Distribution: debian
Posts: 56

Rep: Reputation: 15
Fedora should still have the "setup" command you can run in a terminal as root to easily edit the boot-time startup processes, correct?
 
Old 02-03-2004, 04:59 PM   #8
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Original Poster
Rep: Reputation: 30
They have the services setup, but I tried using it and it seemed like it needed to be using preconfigured files...
 
Old 02-04-2004, 03:23 AM   #9
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
Reread my above post

>>You just have to rename them to change the order in which they boot. ie- S52 starts before S53

Open up your filemanager as root or cd to the /etc/rc.d/rc5.d directory and rename the files. I already gave you the answer to your question. I guess you didn't understand
 
Old 02-04-2004, 06:29 PM   #10
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Original Poster
Rep: Reputation: 30
Im sorry, I guess I over looked that, or didn't take a hard enough look at it because I put the files somewhere different...in /etc/init.d
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programs in FluxBox take ages to start or don't start at all hubabuba Slackware 1 02-20-2005 10:21 AM
How do I start programs automatically with boot up? Kasperisa Linux - Newbie 6 07-15-2004 04:29 PM
How to make programs start on boot... AudioMechanic Linux - Software 4 04-16-2004 07:52 AM
GUI based interphase to start programs at boot time. softgun Debian 2 10-24-2003 02:45 AM
How to start programs automatically at boot? onchiman Linux - Hardware 2 03-18-2003 11:19 AM


All times are GMT -5. The time now is 01:50 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration