mysql and tomcat

mysql and tomcat

am 17.02.2010 00:44:12 von Ted Yu

--00504502ce5d96c686047fc04f0e
Content-Type: text/plain; charset=ISO-8859-1

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

Thanks

--00504502ce5d96c686047fc04f0e--

Re: mysql and tomcat

am 17.02.2010 12:25:34 von Joerg Bruehe

Ted, all,


Ted Yu wrote:
> Hi,
> In our deployment, mysql needs to be started before tomcat automati=
cally
> after server restart.
>=20
> If you know how this order can be specified, please share.
>=20
> 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 inquiri=
es
that forget to name even the basic OS used.


That said, AFAIK there are still some different ways how to handle th=
e
"init" scripts which control the automatic start/stop of services, an=
d
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" an=
d
"Required-Stop" which are used to list dependencies. Then, there are
programs "insserv" or "chkconfig" that evaluate these fields and crea=
te
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

--=20
Joerg Bruehe, MySQL Build Team, Joerg.Bruehe@Sun.COM
Sun Microsystems GmbH, Komturstraße 18a, D-12099 Berlin
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels
Vorsitzender des Aufsichtsrates: Martin Haering Muenchen: HRB1610=
28


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg

Re: mysql and tomcat

am 17.02.2010 12:59:13 von Ananda Kumar

--00504502c551383e86047fca94b8
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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 wrote:

> Ted, all,
>
>
> Ted Yu wrote:
> > Hi,
> > In our deployment, mysql needs to be started before tomcat automaticall=
y
> > 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.Bruehe@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=3Danandkl@gmail.com
>
>

--00504502c551383e86047fca94b8--