Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only watch the app socket if http_check_timeout is greater than zero

  • Loading branch information...
commit a5c01a639ecc38f988737559c9a186d14482c1d2 1 parent 4acff82
@zargony authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/appserver/monit.rb
View
2  lib/appserver/monit.rb
@@ -32,7 +32,7 @@ def write_config
f.puts " stop program = \"#{server_dir.appserver_cmd('stop', app.name)}\""
f.puts " if totalcpu usage > #{app.max_cpu_usage}#{cyclecheck} then restart" if app.max_cpu_usage
f.puts " if totalmemory usage > #{app.max_memory_usage}#{cyclecheck} then restart" if app.max_memory_usage
- f.puts " if failed unixsocket #{app.socket} protocol http request \"/\" timeout #{app.http_check_timeout} seconds then restart" if app.http_check_timeout
+ f.puts " if failed unixsocket #{app.socket} protocol http request \"/\" timeout #{app.http_check_timeout} seconds then restart" if app.http_check_timeout.to_i > 0
f.puts " if 5 restarts within 5 cycles then timeout"
f.puts " group appserver"
f.puts "check file #{app.name}_revision with path #{app.revision_file}"
Please sign in to comment.
Something went wrong with that request. Please try again.