Auto restart newrelic-daemon if crashed

On a web server with Newrelic APM installed, graph stopped showing new data. On checking the newrelic log file, i get following error

This is because newrelic-daemon stopped working. To auto restart newrelic-daemon if it crash, do the following

Add following to the file

Make the script executable

Create a cronjob […]

Read More…