foreman-export-god/data/templates/extensions/unicorn.god.erb

6 lines
262 B
Plaintext
Raw Normal View History

2012-02-02 01:23:23 +00:00
# Unicorn specific
w.pid_file = "<%= engine.directory + "/tmp/pids/unicorn.pid" %>"
w.stop = "kill -QUIT `cat #{w.pid_file}`"
2012-02-07 17:16:01 +00:00
w.restart = "kill -USR2 `cat #{w.pid_file}` && sleep 20 && kill -QUIT `cat #{w.pid_file}.oldbin`"
2012-02-02 01:23:23 +00:00
w.behavior(:clean_pid_file)