mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Merge pull request #2381 from jsierles/fix_runit_reload
Trap runit HUP signal and send USR2 to unicorn
This commit is contained in:
commit
5d0fee683d
@ -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…
x
Reference in New Issue
Block a user