tweak to include pid

This commit is contained in:
Sam 2017-03-10 14:39:55 -05:00
parent eaf001eae5
commit 97c3b031d5
1 changed files with 2 additions and 1 deletions

View File

@ -92,8 +92,9 @@ class DockerManager::Upgrader
#
#
if ENV["UNICORN_SIDEKIQS"].to_i > 0
log "Stopping job queue to reclaim memory"
log "Stopping job queue to reclaim memory, master pid is #{master_pid}"
Process.kill("TSTP", master_pid)
sleep 1
# older versions do not have support, so quickly send a cont so master process is not hung
Process.kill("CONT", master_pid)
end