Skip to content

Commit

Permalink
Revert "Use Process.kill instead of kill"
Browse files Browse the repository at this point in the history
This reverts commit ccc70d2.
  • Loading branch information
mperham committed Nov 1, 2015
1 parent 12ea27f commit 1ecb3a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/sidekiqctl
Expand Up @@ -60,11 +60,11 @@ class Sidekiqctl
end

def quiet
Process.kill(:USR1, pid)
`kill -USR1 #{pid}`
end

def stop
Process.kill(:TERM, pid)
`kill -TERM #{pid}`
kill_timeout.times do
begin
Process.getpgid(pid)
Expand All @@ -74,7 +74,7 @@ class Sidekiqctl
end
sleep 1
end
Process.kill(:KILL, pid)
`kill -9 #{pid}`
FileUtils.rm_f pidfile
done 'Sidekiq shut down forcefully.'
end
Expand Down

0 comments on commit 1ecb3a4

Please sign in to comment.