diff options
author | onefang | 2019-05-22 19:14:35 +1000 |
---|---|---|
committer | onefang | 2019-05-22 19:14:35 +1000 |
commit | ca7a2ed839f8fec5a7d7abbf50fc2c031f192fb5 (patch) | |
tree | 9b4dfc525c31a88014a8d7d6c223e7cd452749c6 /example/config/ROBUST/opensim-monit.conf | |
parent | Renamed branch to SledjChisl. (diff) | |
download | opensim-SC-ca7a2ed839f8fec5a7d7abbf50fc2c031f192fb5.zip opensim-SC-ca7a2ed839f8fec5a7d7abbf50fc2c031f192fb5.tar.gz opensim-SC-ca7a2ed839f8fec5a7d7abbf50fc2c031f192fb5.tar.bz2 opensim-SC-ca7a2ed839f8fec5a7d7abbf50fc2c031f192fb5.tar.xz |
Major tweaking of the scripts to suit the new setup.
Diffstat (limited to '')
-rw-r--r-- | example/config/ROBUST/opensim-monit.conf | 6 |
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 | # |
24 | check process ROBUST with pidfile /var/run/opensim/ROBUST.pid | 24 | check 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/ |