How to Auto restart elasticsearch with monit

monit is a program used to monitor processes and restart them if they failed. If your server don’t have monit installed, see install instructions at Install Monit on Ubuntu or Install Monit on CentOS

To restart elasticsearch on failure, create a file

Add the following content to the file

Reload monit with

To check the status of monit, run

Example

To see other ways of restarting ElasticSearch, see How to auto restart ElasticSearh service on failure

Back to monit

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *