mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Revert "Use Process.kill instead of kill
"
This reverts commit ccc70d2ee1
.
This commit is contained in:
parent
12ea27fc3f
commit
1ecb3a4083
1 changed files with 3 additions and 3 deletions
|
@ -60,11 +60,11 @@ class Sidekiqctl
|
||||||
end
|
end
|
||||||
|
|
||||||
def quiet
|
def quiet
|
||||||
Process.kill(:USR1, pid)
|
`kill -USR1 #{pid}`
|
||||||
end
|
end
|
||||||
|
|
||||||
def stop
|
def stop
|
||||||
Process.kill(:TERM, pid)
|
`kill -TERM #{pid}`
|
||||||
kill_timeout.times do
|
kill_timeout.times do
|
||||||
begin
|
begin
|
||||||
Process.getpgid(pid)
|
Process.getpgid(pid)
|
||||||
|
@ -74,7 +74,7 @@ class Sidekiqctl
|
||||||
end
|
end
|
||||||
sleep 1
|
sleep 1
|
||||||
end
|
end
|
||||||
Process.kill(:KILL, pid)
|
`kill -9 #{pid}`
|
||||||
FileUtils.rm_f pidfile
|
FileUtils.rm_f pidfile
|
||||||
done 'Sidekiq shut down forcefully.'
|
done 'Sidekiq shut down forcefully.'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue