public
Description: A very fast & simple Ruby web server
Homepage: http://code.macournoyer.com/thin/
Clone URL: git://github.com/macournoyer/thin.git
Click here to lend your support to: thin and make a donation at www.pledgie.com !
thin / example / monit_sockets
3da1afca » kevwil 2008-01-26 add example files, change l... 1 check process blog1
2 with pidfile /u/apps/blog/shared/pids/thin.14000.pid
3 start program = "/usr/local/bin/ruby /usr/local/bin/thin start -d -e production -u nobody -g nobody -p 14000 -a 127.0.0.1 -P tmp/pids/thin.14000.pid -c /u/apps/blog/current"
4 stop program = "/usr/local/bin/ruby /usr/local/bin/thin stop -P /u/apps/blog/shared/pids/thin.14000.pid"
5 if totalmem > 90.0 MB for 5 cycles then restart
6 if failed port 14000 then restart
7 if cpu usage > 95% for 3 cycles then restart
8 if 5 restarts within 5 cycles then timeout
9 group blog
10
11 check process blog2
12 with pidfile /u/apps/blog/shared/pids/thin.14001.pid
13 start program = "/usr/local/bin/ruby /usr/local/bin/thin start -d -e production -u nobody -g nobody -p 14001 -a 127.0.0.1 -P tmp/pids/thin.14001.pid -c /u/apps/blog/current"
14 stop program = "/usr/local/bin/ruby /usr/local/bin/thin stop -P /u/apps/blog/shared/pids/thin.14001.pid"
15 if totalmem > 90.0 MB for 5 cycles then restart
16 if failed port 14001 then restart
17 if cpu usage > 95% for 3 cycles then restart
18 if 5 restarts within 5 cycles then timeout
19 group blog
20