diff options
Diffstat (limited to '')
-rw-r--r-- | config/sim_skeleton/opensim-monit.conf (renamed from config/sim01/opensim-monit.conf) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/sim01/opensim-monit.conf b/config/sim_skeleton/opensim-monit.conf index 9d66ce6..ac50fc2 100644 --- a/config/sim01/opensim-monit.conf +++ b/config/sim_skeleton/opensim-monit.conf | |||
@@ -13,10 +13,10 @@ | |||
13 | # | 13 | # |
14 | # Hmmmm, seems that monit changing to a user and running bash -l is different from sudo changing to a user and running bash -l. | 14 | # Hmmmm, seems that monit changing to a user and running bash -l is different from sudo changing to a user and running bash -l. |
15 | # | 15 | # |
16 | check process sim01 with pidfile /var/run/opensim/sim01.pid | 16 | check process simSIM_NUMBER with pidfile /var/run/opensim/simSIM_NUMBER.pid |
17 | start program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd /opt/opensim/config/sim01 && /opt/opensim/config/sim01/start-sim -q'" | 17 | start program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd /opt/opensim/config/simSIM_NUMBER && /opt/opensim/config/simSIM_NUMBER/start-sim -q'" |
18 | as uid root and gid root | 18 | as uid root and gid root |
19 | stop program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd /opt/opensim/config/sim01 && /opt/opensim/config/sim01/stop-sim'" with timeout 600 seconds | 19 | stop program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd /opt/opensim/config/simSIM_NUMBER && /opt/opensim/config/simSIM_NUMBER/stop-sim'" with timeout 600 seconds |
20 | if cpu usage > 50% for 4 cycles then restart | 20 | if cpu usage > 50% for 4 cycles then restart |
21 | if MEMORY usage > 25% for 4 cycles then restart | 21 | if MEMORY usage > 25% for 4 cycles then restart |
22 | # if 5 restarts within 5 cycles then timeout | 22 | # if 5 restarts within 5 cycles then timeout |