Linux - GeneralThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
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.
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.