<% @path = '/etc/monit/monit.d/monit-nginx.conf' %> <% PIDFILE = "/var/run/nginx.pid" %> check process nginx with pidfile <%= PIDFILE %> group nginx-<%= RUBBER_ENV %> start program = "/usr/sbin/service nginx start" stop program = "/usr/sbin/service nginx stop"