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

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

Leave a Reply

Your email address will not be published.