mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Runit sends HUP when 'reload' is called. Trap HUP and send USR2 to unicorn.
This commit is contained in:
parent
4d3c19f736
commit
daa8c50745
@ -26,7 +26,7 @@ function on_reload()
|
|||||||
export UNICORN_SUPERVISOR_PID=$$
|
export UNICORN_SUPERVISOR_PID=$$
|
||||||
|
|
||||||
trap on_exit EXIT
|
trap on_exit EXIT
|
||||||
trap on_reload USR2
|
trap on_reload USR2 HUP
|
||||||
|
|
||||||
unicorn $@ &
|
unicorn $@ &
|
||||||
UNICORN_PID=$!
|
UNICORN_PID=$!
|
||||||
|
Loading…
Reference in New Issue
Block a user