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

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -