Skip to content
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.

Commit

Permalink
Use Process.kill instead of kill
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Aug 6, 2015
1 parent 5ffac09 commit ccc70d2
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
`kill -USR1 #{pid}`
Process.kill(:USR1, pid)
end

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

0 comments on commit ccc70d2

Please sign in to comment.