Browse files

Don't double stop the master process

  • Loading branch information...
1 parent c69912b commit 89cd8f09030198592f6d1b9e6aa1062de879e8c2 James Herdman committed Apr 11, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/raemon/master.rb
View
3 lib/raemon/master.rb
@@ -128,6 +128,7 @@ def master_loop!
maintain_worker_count if respawn
master_sleep
when :QUIT # graceful shutdown
+ stop
break
when :TERM, :INT # immediate shutdown
stop(false)
@@ -163,8 +164,6 @@ def master_loop!
retry
end
- # Gracefully shutdown all workers on our way out
- stop
logger.info "master complete"
# Close resources

0 comments on commit 89cd8f0

Please sign in to comment.