lib/localjob/worker.rb in localjob-0.4.0 vs lib/localjob/worker.rb in localjob-0.4.1
- old
+ new
@@ -79,9 +79,10 @@
end
def trap_signals
Signal.trap("QUIT") { shutdown }
Signal.trap("INT") { shutdown }
+ Signal.trap("TERM") { shutdown }
end
def create_pid_file(path)
File.open(path, 'w') { |f| f << self.pid } if path
end