Skip to content

Commit

Permalink
Fix monit multiple thumbor services error
Browse files Browse the repository at this point in the history
  • Loading branch information
estahn committed Dec 23, 2013
1 parent 6bbc01f commit 84dd788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/default/thumbor.monitrc.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<% (@base_port..@base_port + @instances - 1).each do |port| %>
check host thumbor with address 127.0.0.1
start program = "/etc/init.d/thumbor start"
stop program = "/etc/init.d/thumbor stop"
<% (@base_port..@base_port + @instances - 1).each do |port| %>
if failed port <%= port %> protocol http and request "/healthcheck" then restart
<% end %>
if 5 restarts within 5 cycles then stop
<% if @send_email_notification_to %>
alert <%= send_email_notification_to %> on { restart, stop }
<% end %>

<% end %>

0 comments on commit 84dd788

Please sign in to comment.