daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest May 17th, 2018 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/cookbooks/mongrel/templates/default/mongrel_rack.monitrc.erb b/cookbooks/mongrel/templates/default/mongrel_rack.monitrc.erb
  2. index 63b5d09..c6e9ccf 100644
  3. --- a/cookbooks/mongrel/templates/default/mongrel_rack.monitrc.erb
  4. +++ b/cookbooks/mongrel/templates/default/mongrel_rack.monitrc.erb
  5. @@ -1,7 +1,7 @@
  6.  <% (@mongrel_base_port).upto(@mongrel_base_port + (@mongrel_instance_count - 1)) do |i| %>
  7.  check process rack_<%= @app_name %>_<%= i %>
  8.    with pidfile /var/run/mongrel/<%= @app_name %>/mongrel.<%= i %>.pid
  9. -  start program = "/usr/bin/rackup -s mongrel -p <%= i %> -E <%= @node[:environment][:framework_env] %> -P /var/run/mongrel/<%= @app_name %>/mongrel.<%= i %>.pid -D /data/<%= @app_name %>/curren
  10. +  start program = "RACK_ENV=<%= @node[:environment][:framework_env] %> RAILS_ENV=<%= @node[:environment][:framework_env] %> MERB_ENV=<%= @node[:environment][:framework_env] %> /usr/bin/rackup -s
  11.    stop program = "/engineyard/bin/rackup_stop /var/run/mongrel/<%= @app_name %>/mongrel.<%= i %>.pid" as uid <%= @user %> and gid <%= @user %>
  12.    if totalmem is greater than <%= @mongrel_mem_limit %> MB for 2 cycles then restart      # eating up memory?
  13.    group <%= @app_name %>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top