From 322f7c419214baaba870a5edd3996f09b6cdd2ee Mon Sep 17 00:00:00 2001 From: Bob Potter Date: Tue, 7 Feb 2012 11:16:01 -0600 Subject: [PATCH] unicorn.god.erb fix god restarting --- data/templates/extensions/unicorn.god.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/templates/extensions/unicorn.god.erb b/data/templates/extensions/unicorn.god.erb index 7578b0a..3e6ccc1 100644 --- a/data/templates/extensions/unicorn.god.erb +++ b/data/templates/extensions/unicorn.god.erb @@ -1,5 +1,5 @@ # Unicorn specific w.pid_file = "<%= engine.directory + "/tmp/pids/unicorn.pid" %>" w.stop = "kill -QUIT `cat #{w.pid_file}`" - w.restart = "kill -USR2 `cat #{w.pid_file}` && sleep 20 && kill -QUIT #{w.pid_file}.oldbin" + w.restart = "kill -USR2 `cat #{w.pid_file}` && sleep 20 && kill -QUIT `cat #{w.pid_file}.oldbin`" w.behavior(:clean_pid_file)