aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/config/sim_skeleton/opensim-monit.conf
diff options
context:
space:
mode:
authoronefang2019-05-19 23:10:15 +1000
committeronefang2019-05-19 23:10:15 +1000
commit64dfe62fab804be64cc29cc0c821e7abac1d946d (patch)
tree3874e927329d88a62e27dde2cc210c968b86c2e2 /config/sim_skeleton/opensim-monit.conf
parentNew TODO. (diff)
downloadopensim-SC_OLD-64dfe62fab804be64cc29cc0c821e7abac1d946d.zip
opensim-SC_OLD-64dfe62fab804be64cc29cc0c821e7abac1d946d.tar.gz
opensim-SC_OLD-64dfe62fab804be64cc29cc0c821e7abac1d946d.tar.bz2
opensim-SC_OLD-64dfe62fab804be64cc29cc0c821e7abac1d946d.tar.xz
Make examples directory, and shuffle all the out of tree stuff into it.
Diffstat (limited to 'config/sim_skeleton/opensim-monit.conf')
-rw-r--r--config/sim_skeleton/opensim-monit.conf29
1 files changed, 0 insertions, 29 deletions
diff --git a/config/sim_skeleton/opensim-monit.conf b/config/sim_skeleton/opensim-monit.conf
deleted file mode 100644
index ac50fc2..0000000
--- a/config/sim_skeleton/opensim-monit.conf
+++ /dev/null
@@ -1,29 +0,0 @@
1# manage the OpenSim process for Your Sim
2#
3# usage:
4# monit start your_sim
5# monit stop your_sim
6# monit restart your_sim
7#
8# see 'daemon' setting in /etc/monit/monitrc for the cycle length.
9# on ubuntu/debian, this is overridden by the CHECK_INTERVALS var in
10# /etc/default/monit . the below assumes you've set it to 30 seconds.
11#
12# see ../README for configuration instructions.
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.
15#
16check 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/simSIM_NUMBER && /opt/opensim/config/simSIM_NUMBER/start-sim -q'"
18 as uid root and gid root
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
21 if MEMORY usage > 25% for 4 cycles then restart
22# if 5 restarts within 5 cycles then timeout
23# if failed url http://127.0.0.1:9005/jsonSimStats/
24# and content != '"SimFPS":0.0,' for 4 cycles
25# then restart
26# if failed url http://127.0.0.1:9008/jsonSimStats/
27# and content == '"SimFPS":' for 4 cycles
28# then restart
29 depends on ROBUST