[refs #510] Remove children kill from production.pill

This commit is contained in:
konstantin.grabar 2012-06-07 14:25:38 +04:00
parent a266e57219
commit 7db11f40c8
1 changed files with 5 additions and 5 deletions

View File

@ -24,11 +24,11 @@ Bluepill.application(app_name, :log_file => "/srv/rosa_build/shared/log/bluepill
process.stop_command = "kill -QUIT {{PID}}"
process.daemonize = true
process.monitor_children do |c|
c.stop_command = "kill -USR1 {{PID}}" # TODO: Are we really need this?
c.checks :mem_usage, :every => 30.seconds, :below => 80.megabytes, :fires => :stop
c.checks :running_time, :every => 30.seconds, :below => 10.minutes, :fires => :stop
end
#process.monitor_children do |c|
# c.stop_command = "kill -USR1 {{PID}}" # TODO: Are we really need this?
# c.checks :mem_usage, :every => 30.seconds, :below => 80.megabytes, :fires => :stop
# c.checks :running_time, :every => 30.seconds, :below => 10.minutes, :fires => :stop
#end
end
#app.process("newrelic") do |process|