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.
|
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 |
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 |
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 |
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.
|
No, bobthebaritone, its not Western Aust(something or other), its Washington State, in the United States....<G>.
-Josh |
Fedora should still have the "setup" command you can run in a terminal as root to easily edit the boot-time startup processes, correct?
|
They have the services setup, but I tried using it and it seemed like it needed to be using preconfigured files...
|
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 |
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. |