Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't reload on SIGHUP if we're already in the middle of shutting down

  • Loading branch information...
commit 5dae65f6f67b7a60dfe2edc0cf8add1eacf4f602 1 parent a453cf2
@ebroder ebroder authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/einhorn/command.rb
View
5 lib/einhorn/command.rb
@@ -143,6 +143,11 @@ def self.dumpable_state
end
def self.reload
+ unless Einhorn::State.respawn
+ Einhorn.log_info("Not reloading einhorn because we're exiting")
+ return
+ end
+
Einhorn.log_info("Reloading einhorn (#{Einhorn::TransientState.script_name})...")
# In case there's anything lurking
Please sign in to comment.
Something went wrong with that request. Please try again.