From eb719e5855340effaf57e53939c78658063f0a45 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 7 Feb 2012 00:01:55 +1000 Subject: Stopping after 5 tries to restart the sim is not so good. --- opensim-monit.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensim-monit.conf b/opensim-monit.conf index 60ab632..9688a25 100644 --- a/opensim-monit.conf +++ b/opensim-monit.conf @@ -24,7 +24,7 @@ check process sim01 with pidfile /var/run/opensim/sim01.pid 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 > 50% for 4 cycles then restart - if 5 restarts within 5 cycles then timeout +# 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 # then restart -- cgit v1.1