Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

commit monitrc file

  • Loading branch information...
commit b28425508e90bb3a475877d2e2f739fd02a5c5bd 1 parent 4d21531
@gnufied authored
Showing with 25 additions and 0 deletions.
  1. +25 −0 script/monitrc
View
25 script/monitrc
@@ -0,0 +1,25 @@
+set daemon 60
+set mailserver localhost
+set mail-format {
+ from: sample@foobar.com
+ subject: Alert from Backgroundrb
+}
+set alert hemant@gmail.com
+
+set httpd port 3000 and
+ use address localhost # only accept connection from localhost
+ allow localhost # allow localhost to connect to the server and
+
+check process backgroundrb
+ with pidfile /home/hemant/rails_sandbox/tmp/pids/backgroundrb_11008.pid
+ start program = "/usr/bin/ruby /home/hemant/rails_sandbox/script/backgroundrb start"
+ stop program = "/usr/bin/ruby /home/hemant/rails_sandbox/script/backgroundrb stop"
+ if totalmem > 50.0 MB for 5 cycles then restart
+ if cpu usage > 95% for 3 cycles then restart
+
+ if failed port 11008 type tcp
+ with timeout 30 seconds
+ for 5 cycles
+ then restart
+ group backgroundrb
+
Please sign in to comment.
Something went wrong with that request. Please try again.