Skip to content

Commit

Permalink
removed hardcoded path from the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Gaiser committed Nov 12, 2010
1 parent 5f13bee commit 0320d45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions example/monit_sockets
@@ -1,7 +1,7 @@
check process blog1
with pidfile /u/apps/blog/shared/pids/thin.14000.pid
start program = "/usr/bin/env ruby 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"
stop program = "/usr/bin/env ruby thin stop -P /u/apps/blog/shared/pids/thin.14000.pid"
start program = "ruby 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"
stop program = "ruby thin stop -P /u/apps/blog/shared/pids/thin.14000.pid"
if totalmem > 90.0 MB for 5 cycles then restart
if failed port 14000 then restart
if cpu usage > 95% for 3 cycles then restart
Expand All @@ -10,8 +10,8 @@ check process blog1

check process blog2
with pidfile /u/apps/blog/shared/pids/thin.14001.pid
start program = "/usr/bin/env ruby 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"
stop program = "/usr/bin/env ruby thin stop -P /u/apps/blog/shared/pids/thin.14001.pid"
start program = "ruby 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"
stop program = "ruby thin stop -P /u/apps/blog/shared/pids/thin.14001.pid"
if totalmem > 90.0 MB for 5 cycles then restart
if failed port 14001 then restart
if cpu usage > 95% for 3 cycles then restart
Expand Down
8 changes: 4 additions & 4 deletions example/monit_unixsock
@@ -1,7 +1,7 @@
check process blog1
with pidfile /u/apps/blog/shared/pids/thin.1.pid
start program = "/usr/bin/env ruby thin start -d -e production -S /u/apps/blog/shared/pids/thin.1.sock -P tmp/pids/thin.1.pid -c /u/apps/blog/current"
stop program = "/usr/bin/env ruby thin stop -P /u/apps/blog/shared/pids/thin.1.pid"
start program = "ruby thin start -d -e production -S /u/apps/blog/shared/pids/thin.1.sock -P tmp/pids/thin.1.pid -c /u/apps/blog/current"
stop program = "ruby thin stop -P /u/apps/blog/shared/pids/thin.1.pid"
if totalmem > 90.0 MB for 5 cycles then restart
if failed unixsocket /u/apps/blog/shared/pids/thin.1.sock then restart
if cpu usage > 95% for 3 cycles then restart
Expand All @@ -10,8 +10,8 @@ check process blog1

check process blog2
with pidfile /u/apps/blog/shared/pids/thin.2.pid
start program = "/usr/bin/env ruby thin start -d -e production -S /u/apps/blog/shared/pids/thin.2.sock -P tmp/pids/thin.2.pid -c /u/apps/blog/current"
stop program = "/usr/bin/env ruby thin stop -P /u/apps/blog/shared/pids/thin.2.pid"
start program = "ruby thin start -d -e production -S /u/apps/blog/shared/pids/thin.2.sock -P tmp/pids/thin.2.pid -c /u/apps/blog/current"
stop program = "ruby thin stop -P /u/apps/blog/shared/pids/thin.2.pid"
if totalmem > 90.0 MB for 5 cycles then restart
if failed unixsocket /u/apps/blog/shared/pids/thin.2.sock then restart
if cpu usage > 95% for 3 cycles then restart
Expand Down

0 comments on commit 0320d45

Please sign in to comment.