RE: Tomcat stop and start using bash script

2018-06-29 Thread Jäkel , Guido
M >To: users@tomcat.apache.org >Subject: Re: Tomcat stop and start using bash script > >Hi. > >I have not followe3d this thread since the beginning, but > >The standard tomcat distribution comes with a series of shell scripts in the >"bin" >directory, which d

Re: Tomcat stop and start using bash script

2018-06-28 Thread tomcat
Hi. I have not followe3d this thread since the beginning, but The standard tomcat distribution comes with a series of shell scripts in the "bin" directory, which do just that : start or stop tomcat. They are conveniently called "startup.sh" and "shutdown.sh". You could get inspiration from

Re: Tomcat stop and start using bash script

2018-06-28 Thread Luis Rodríguez Fernández
Hello Danesh Perhaps you could look for any of your tomcat connector ports, ask for the process that is listening and kill it: $ ppid=`lsof -i:8080 -Fp | grep p` $ pid=`echo ${ppid#p*}` $ kill $pid Probably you can find something more elegant but the idea could be this one... Hope it helps,

Re: Tomcat stop and start using bash script

2018-06-27 Thread Leon Rosenberg
use -force option bin/shutdown.sh -force regards Leon On Wed, Jun 27, 2018 at 5:51 PM dhanesh1212121212 wrote: > Hi All, > > Trying to stop and start tomcat in production using bash script for war > deployment. > > If tomcat not stopped properly then how we can kill the correct process and >

Tomcat stop and start using bash script

2018-06-27 Thread dhanesh1212121212
Hi All, Trying to stop and start tomcat in production using bash script for war deployment. If tomcat not stopped properly then how we can kill the correct process and make sure it's stopped correctly. Regards, Dhanesh M.