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
Post a Comment