To add information to the query - I dont have access to the server. So I cannot setup jobs or change tomcat startup parameters.
I have hosted my site with a provider and I only have cpanel access. Hence I am looking for some code which would restart/reintialize tomcat from within. Website - www.investorschoolindia.com --- On Tue, 1/29/13, Andrew Kujtan <akuj...@evertz.com> wrote: From: Andrew Kujtan <akuj...@evertz.com> Subject: RE: Restarting Tomcat from within itself? To: "Tomcat Users List" <users@tomcat.apache.org> Date: Tuesday, January 29, 2013, 12:48 AM > -----Original Message----- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Monday, January 28, 2013 2:01 PM > To: Tomcat Users List > Subject: Re: Restarting Tomcat from within itself? > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Andrew, > > On 1/28/13 1:49 PM, Andrew Kujtan wrote: > >> -----Original Message----- From: Christopher Schultz > >> [mailto:ch...@christopherschultz.net] Sent: Monday, January 28, > >> 2013 10:33 AM To: Tomcat Users List Subject: Re: Restarting Tomcat > >> from within itself? > >> > > Daniel, > > > > On 1/28/13 8:19 AM, Daniel Mikusa wrote: > >>>> On Jan 26, 2013, at 5:19 AM, Sunil Shevante wrote: > >>>> > >>>>> Hi, > >>>>> > >>>>> Is it possible to restart tomcat from within itself? > >>>>> > > > >> FWIW, It is possible to restart tomcat by calling, > > > >> org.apache.catalina.startup.Bootstrap.main(new String[] { "stop" > >> }); > > > >> then use a shutdown hook to start it up again, > > > >> But I really don't recommend it. > > What would your shutdown hook do, then? > > - -chris Just use a ProcessBuilder to call the startup script in a new process. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.17 (Darwin) > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEAREIAAYFAlEGyvkACgkQ9CaO5/Lv0PAYJACghkS1q1PS8twbUz2ITogaw6uW > oXoAoLD7TAO5YNi1+N4tcmEej0aBu1qr > =23Sy > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org