-
-
Save remon/4093d9a6cf51f15cda8d3ade7ff063b4 to your computer and use it in GitHub Desktop.
Monit: Restart unicorn automatically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check process unicorn-<<aplicacion>> | |
with pidfile /home/deployer/apps/<<aplicacion>>/current/tmp/pids/unicorn.pid | |
start program = "/etc/init.d/unicorn_blog start" | |
stop program = "/etc/init.d/unicorn_blog stop" | |
restart program = "/etc/init.d/unicorn_blog stop && /etc/init.d/unicorn_blog start" | |
group unicorn-blog | |
check file blog-restart with path /home/deployer/apps/<<aplicacion>>/current/tmp/restart.txt | |
if changed timestamp | |
then exec "/usr/bin/monit -g unicorn-blog restart" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment