Report abuse

<% (@mongrel_base_port).upto(@mongrel_base_port + (@mongrel_instance_count - 1)) do |i| %>
check process rack_<%= @app_name %>_<%= i %>
  with pidfile /var/run/mongrel/<%= @app_name %>/mongrel.<%= i %>.pid
  start program = "/usr/bin/rackup -s mongrel -p <%= i %> -E production -P /var/run/mongrel/<%= @app_name %>/mongrel.<%= i %>.pid -D /data/<%= @app_name %>/current/config.ru" as uid <%= @user %> and gid <%= @user %>
  stop program = "/engineyard/bin/rackup_stop /var/run/mongrel/<%= @app_name %>/mongrel.<%= i %>.pid" as uid <%= @user %> and gid <%= @user %>
  if totalmem is greater than <%= @mongrel_mem_limit %> MB for 2 cycles then restart      # eating up memory?
  group <%= @app_name %>
<% end %>