unicorn.monitrc.erb 403 Bytes
Newer Older
Marin Jankovski's avatar
Marin Jankovski committed
1
check process unicorn with pidfile <%= @unicorn_pid_path %>
2
  <% if @notify_email %>
Marin Jankovski's avatar
Marin Jankovski committed
3
  alert <%= @notify_email %> but not on { ppid }
4
  <% end %>
Marin Jankovski's avatar
Marin Jankovski committed
5
  start program = "/bin/cat /dev/null"
6
  stop program = "/bin/su - <%= @gitlab_user %> -c 'RAILS_ENV=production <%= @gitlab_path %>/script/web reload'"
7
  if totalmem is greater than <%= @mem_threshold %> MB for <%= @mem_cycles_number %> cycles then restart