There is a file called /etc/rc.local. You can set the mysql start here, before starting tomcat during system or server reboot.
regards anandkl On Wed, Feb 17, 2010 at 6:25 AM, Joerg Bruehe <joerg.bru...@sun.com> wrote: > Ted, all, > > > Ted Yu wrote: > > Hi, > > In our deployment, mysql needs to be started before tomcat automatically > > after server restart. > > > > If you know how this order can be specified, please share. > > > > We use tomcat6 on Linux tyu-linux 2.6.18-128.2.1.el5 #1 SMP Tue Jul 14 > > 06:36:37 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux > > I'm happy you at least tell us it is on Linux, there are many inquiries > that forget to name even the basic OS used. > > > That said, AFAIK there are still some different ways how to handle the > "init" scripts which control the automatic start/stop of services, and > these different ways are used by different distributions. > > So you need to check the way in which your distribution does handle > these scripts in "/etc/init.d". > > Typically, the scripts should contain fields like "Required-Start" and > "Required-Stop" which are used to list dependencies. Then, there are > programs "insserv" or "chkconfig" that evaluate these fields and create > symbolic links for the various run levels that ensure the start/stop is > done in the proper sequence. > > Sorry, I can't be more specific than this, but I hope this gives you the > proper pointers to find the specifics for your distribution. > > > HTH, > Jörg > > -- > Joerg Bruehe, MySQL Build Team, joerg.bru...@sun.com > Sun Microsystems GmbH, Komturstraße 18a, D-12099 Berlin > Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels > Vorsitzender des Aufsichtsrates: Martin Haering Muenchen: HRB161028 > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: http://lists.mysql.com/mysql?unsub=anan...@gmail.com > >