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

See monit

Leave a Reply

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