mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Use Process.kill instead of kill
This commit is contained in:
parent
5ffac09941
commit
ccc70d2ee1
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue