Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 828 Bytes
set daemon 60
set mailserver localhost
set mail-format {
subject: Alert from Backgroundrb
set alert
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/
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
Something went wrong with that request. Please try again.