aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/example/config/ROBUST/opensim-monit.conf
diff options
context:
space:
mode:
authoronefang2019-05-22 19:14:35 +1000
committeronefang2019-05-22 19:14:35 +1000
commitca7a2ed839f8fec5a7d7abbf50fc2c031f192fb5 (patch)
tree9b4dfc525c31a88014a8d7d6c223e7cd452749c6 /example/config/ROBUST/opensim-monit.conf
parentRenamed branch to SledjChisl. (diff)
downloadopensim-SC_OLD-ca7a2ed839f8fec5a7d7abbf50fc2c031f192fb5.zip
opensim-SC_OLD-ca7a2ed839f8fec5a7d7abbf50fc2c031f192fb5.tar.gz
opensim-SC_OLD-ca7a2ed839f8fec5a7d7abbf50fc2c031f192fb5.tar.bz2
opensim-SC_OLD-ca7a2ed839f8fec5a7d7abbf50fc2c031f192fb5.tar.xz
Major tweaking of the scripts to suit the new setup.
Diffstat (limited to 'example/config/ROBUST/opensim-monit.conf')
-rw-r--r--example/config/ROBUST/opensim-monit.conf6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/config/ROBUST/opensim-monit.conf b/example/config/ROBUST/opensim-monit.conf
index 70190b9..adce46d 100644
--- a/example/config/ROBUST/opensim-monit.conf
+++ b/example/config/ROBUST/opensim-monit.conf
@@ -21,10 +21,10 @@
21# 21#
22# Hmmmm, seems that monit changing to a user and running bash -l is different from sudo changing to a user and running bash -l. 22# Hmmmm, seems that monit changing to a user and running bash -l is different from sudo changing to a user and running bash -l.
23# 23#
24check process ROBUST with pidfile /var/run/opensim/ROBUST.pid 24check process ROBUST with pidfile OS_PATH/caches/ROBUST.pid
25 start program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd /opt/opensim/config/ROBUST && /opt/opensim/config/ROBUST/start-sim -q'" 25 start program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd OS_PATH/config/ROBUST && OS_PATH/config/ROBUST/start-sim -q'"
26 as uid root and gid root 26 as uid root and gid root
27 stop program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd /opt/opensim/config/ROBUST && /opt/opensim/config/ROBUST/stop-sim'" with timeout 600 seconds 27 stop program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd OS_PATH/config/ROBUST && OS_PATH/config/ROBUST/stop-sim'" with timeout 600 seconds
28 if cpu usage > 50% for 4 cycles then restart 28 if cpu usage > 50% for 4 cycles then restart
29# if 5 restarts within 5 cycles then timeout 29# if 5 restarts within 5 cycles then timeout
30# if failed url http://127.0.0.1:9005/jsonSimStats/ 30# if failed url http://127.0.0.1:9005/jsonSimStats/