Automate Restart Of Solr

Posted by Brain Buddies on Super User See other posts from Super User or by Brain Buddies
Published on 2012-12-08T15:51:32Z Indexed on 2012/12/08 23:13 UTC
Read the original article Hit count: 135

Filed under:

I have 3 instance of solr running

  1. using tomcat (in shell u will find something like -Dcatalina.base=/usr/local/apache-tomcat-6.0.35 -)
  2. suing tomcat_1 (in shell u will find something like -Dcatalina.base=/usr/local/apache-tomcat-6.0.35_1 -)
  3. using tomcat_2 (in shell u will find something like -Dcatalina.base=/usr/local/apache-tomcat-6.0.35_2 -)

Can i write a shell script which can kill the particular instance

  1. for 1 : kill tomcat but not tomcat_1 & tomcat_2
  2. for 2 : kill tomcat_1 but not tomcat & tomcat_2
  3. for 3 : kill tomcat_2 but not tomcat & tomcat_1

© Super User or respective owner

Related posts about linux