Last active
March 21, 2016 22:07
-
-
Save evandrojr/ad4d7cff6f215f3c3e37 to your computer and use it in GitHub Desktop.
cat /etc/monit.d/*
This file contains 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 npm | |
matching "npm" | |
start program = "/bin/su designer -lc 'cd /home/designer/angular-theme && npm start' " | |
stop program = "/usr/bin/killall -9 npm" | |
if cpu usage > 95% for 10 cycles then restart | |
# log to monit.log | |
set logfile /var/log/monit.log | |
check process noosfero_designer with pidfile /home/designer/noosfero/noosfero.pid | |
start program = "/bin/su designer -lc 'cd /home/designer/noosfero && sleep 4 && rails s -b [IP_ADDRESS] -P `pwd`/noosfero.pid' " | |
stop program = "/bin/kill `echo /home/designer/noosfero/noosfero.pid`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment