In production systems I have done a three-stage technique. First, use the container's standard shutdown tool. Tomcat, JBoss, Jetty all have their own. Then, sleep for maybe 60 seconds. Then do kill, sleep more, then 'kill -9'. On Wed, Aug 19, 2009 at 12:21 PM, Fuad Efendi <f...@efendi.ca> wrote:
> Thanks... "kill" should be / can be graceful; "kill -9" should kill > immediately... no any hang, whole point... > > http://www.nabble.com/Is-kill--9-safe-or-not--td24866506.html > > > > > -----Original Message----- > From: ptomb...@gmail.com [mailto:ptomb...@gmail.com] On Behalf Of Paul > Tomblin > Sent: August-19-09 2:49 PM > To: solr-user@lucene.apache.org > Subject: Re: Shutdown Solr > > On Wed, Aug 19, 2009 at 2:43 PM, Fuad Efendi<f...@efendi.ca> wrote: > > Most probably Ctrl-C is graceful for Tomcat, and kill -9 too... Tomcat is > > smart... I prefer "/etc/init.d/my_tomcat" wrapper around catalina.sh ("su > > tomcat", /var/lock etc...) - ok then, Graceful Shutdown depends on how > you > > started Tomcat. > > *No* application is graceful for "kill -9". The whole point of "kill > -9" is that it's uncatchable. > > > -- > http://www.linkedin.com/in/paultomblin > > > -- Lance Norskog goks...@gmail.com