Hi Haani, It's been 48 since your post, so I'm not sure if it's still relevant, however if tomcat is taking a long time to respond, there's not much Capistrano can do to handle that.
The only real way is to make a command that backgrounds tomcat, collects it's PID and then signals it after a certain number of seconds, but it ends up being quite convoluted. Bash's (assuming you're using the Bourne shell) FAQ #68 has a wealth of good information: http://mywiki.wooledge.org/BashFAQ/068 Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 16 May 2016 at 04:23, Haani Niyaz <haani.ni...@gmail.com> wrote: > We have a use case where we want to run a service tomcat stop command and > if it hangs run a kill -9 <pid> command. I'm unaware of ways to handle > this in Capistrano. > Has anyone solved a similar issue..? if so, can you please share methods, > thanks. > > > Versions: > > - Ruby 2.1.1p76 > - Capistrano 3.4.0 > > > > > -- > You received this message because you are subscribed to the Google Groups > "Capistrano" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to capistrano+unsubscr...@googlegroups.com. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/capistrano/57e83528-0b6e-455d-94ae-dd875c5a1937%40googlegroups.com > <https://groups.google.com/d/msgid/capistrano/57e83528-0b6e-455d-94ae-dd875c5a1937%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/CAN_%2BVLUkpj_0p6dcX-j05bWouT%3D%2Bw-4TV3hjddF8SzmUtyM3gA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.