diff --git a/lib/demon/base.rb b/lib/demon/base.rb index c8cb0b0116e..254a17baaf8 100644 --- a/lib/demon/base.rb +++ b/lib/demon/base.rb @@ -121,7 +121,9 @@ class Demon::Base Thread.new do while true unless alive?(@parent_pid) - Process.kill "QUIT", Process.pid + Process.kill "TERM", Process.pid + sleep 10 + Process.kill "KILL", Process.pid end sleep 1 end