From 64dfe62fab804be64cc29cc0c821e7abac1d946d Mon Sep 17 00:00:00 2001 From: onefang Date: Sun, 19 May 2019 23:10:15 +1000 Subject: Make examples directory, and shuffle all the out of tree stuff into it. --- config/sim_skeleton/opensim-monit.conf | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 config/sim_skeleton/opensim-monit.conf (limited to 'config/sim_skeleton/opensim-monit.conf') 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 @@ -# manage the OpenSim process for Your Sim -# -# usage: -# monit start your_sim -# monit stop your_sim -# monit restart your_sim -# -# see 'daemon' setting in /etc/monit/monitrc for the cycle length. -# on ubuntu/debian, this is overridden by the CHECK_INTERVALS var in -# /etc/default/monit . the below assumes you've set it to 30 seconds. -# -# see ../README for configuration instructions. -# -# Hmmmm, seems that monit changing to a user and running bash -l is different from sudo changing to a user and running bash -l. -# -check process simSIM_NUMBER with pidfile /var/run/opensim/simSIM_NUMBER.pid - start program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd /opt/opensim/config/simSIM_NUMBER && /opt/opensim/config/simSIM_NUMBER/start-sim -q'" - as uid root and gid root - 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 - if cpu usage > 50% for 4 cycles then restart - if MEMORY usage > 25% for 4 cycles then restart -# 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 -# if failed url http://127.0.0.1:9008/jsonSimStats/ -# and content == '"SimFPS":' for 4 cycles -# then restart - depends on ROBUST -- cgit v1.1