linux - How to configure ElasticSearch to restart after crash -


using apt-get package elasticsearh, how can configure service restart automatically after crashing on ubuntu?

write #!/bin/sh script follows:

if ps -ef | grep -v grep | grep elastic ; exit 0 else /etc/init.d/elasticsearch start >> /var/run/elasticsearch.pid & exit 0 fi


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -