#!monit set logfile /var/log/monit.log check process nodejs with pidfile "/var/www/NODEAPP/YOUR_APP.pid" start program = "/etc/init.d/node_app start" stop program = "/etc/init.d/node_app stop" if failed port 8080 protocol HTTP request / with timeout 10 seconds then restart