LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Configuring start up and boot programs (https://www.linuxquestions.org/questions/linux-general-1/configuring-start-up-and-boot-programs-141647/)

techrolla 02-02-2004 10:46 PM

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.

ter_roshak 02-03-2004 12:12 AM

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

bobthebaritone 02-03-2004 12:55 AM

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

enigmasoldier 02-03-2004 02:07 AM

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

techrolla 02-03-2004 07:07 AM

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.

ter_roshak 02-03-2004 08:01 AM

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

-Josh

Unseen 02-03-2004 01:28 PM

Fedora should still have the "setup" command you can run in a terminal as root to easily edit the boot-time startup processes, correct?

techrolla 02-03-2004 03:59 PM

They have the services setup, but I tried using it and it seemed like it needed to be using preconfigured files...

enigmasoldier 02-04-2004 02:23 AM

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

techrolla 02-04-2004 05:29 PM

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


All times are GMT -5. The time now is 04:07 PM.