From 3595cf79d5ab9303ca2cbf4cecf2f3fa986eae07 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 28 Nov 2011 05:10:07 +1000 Subject: Less CPU usage for a restart. Not every one has enough CPUs that over 100% usage is not noticable. --- opensim-monit.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensim-monit.conf b/opensim-monit.conf index 7d26a82..60ab632 100644 --- a/opensim-monit.conf +++ b/opensim-monit.conf @@ -23,7 +23,7 @@ check process sim01 with pidfile /var/run/opensim/sim01.pid start program = "/bin/bash -c 'cd /opt/opensim/config/sim01 && /opt/opensim/config/sim01/start-sim -q'" as uid opensim and gid opensim stop program = "/bin/bash -c 'cd /opt/opensim/config/sim01 && /opt/opensim/config/sim01/stop-sim'" with timeout 600 seconds - if cpu usage > 200% for 4 cycles then restart + if cpu usage > 50% for 4 cycles then restart if 5 restarts within 5 cycles then timeout # if failed url http://127.0.0.1:9005/jsonSimStats/ # and content != '"SimFPS":0.0,' for 4 cycles -- cgit v1.1