From daa8c507456e5375259b8c5fa906cfa62aa4ae47 Mon Sep 17 00:00:00 2001 From: Joshua Sierles Date: Fri, 23 May 2014 13:01:11 +0200 Subject: [PATCH] Runit sends HUP when 'reload' is called. Trap HUP and send USR2 to unicorn. --- config/unicorn_launcher | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/unicorn_launcher b/config/unicorn_launcher index 60e20cf89..96c0e68a1 100755 --- a/config/unicorn_launcher +++ b/config/unicorn_launcher @@ -26,7 +26,7 @@ function on_reload() export UNICORN_SUPERVISOR_PID=$$ trap on_exit EXIT -trap on_reload USR2 +trap on_reload USR2 HUP unicorn $@ & UNICORN_PID=$!