foreman-export-god/data/templates/extensions/unicorn.god.erb
2012-02-07 11:16:01 -06:00

6 lines
262 B
Plaintext

# 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 `cat #{w.pid_file}.oldbin`"
w.behavior(:clean_pid_file)