diff options
author | David Walter Seikel | 2011-11-28 04:53:09 +1000 |
---|---|---|
committer | David Walter Seikel | 2011-11-28 04:53:09 +1000 |
commit | 554583496a2fdd3b9399c73a7fc526f99956e5bc (patch) | |
tree | ac2bb5d813f39b239179560855a15eceb4cf8682 /opensim-monit.conf | |
parent | No need to deal with ownership and perms, the install script does that now. (diff) | |
download | IGnoble-554583496a2fdd3b9399c73a7fc526f99956e5bc.zip IGnoble-554583496a2fdd3b9399c73a7fc526f99956e5bc.tar.gz IGnoble-554583496a2fdd3b9399c73a7fc526f99956e5bc.tar.bz2 IGnoble-554583496a2fdd3b9399c73a7fc526f99956e5bc.tar.xz |
Backup sim regularly.
Rest don't work, screen would be better even if it did work.
New scripts for stopping the sim, backing up the sim, and showing the console.
Monit script works now.
Diffstat (limited to '')
-rw-r--r-- | opensim-monit.conf | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/opensim-monit.conf b/opensim-monit.conf index c98ad91..7d26a82 100644 --- a/opensim-monit.conf +++ b/opensim-monit.conf | |||
@@ -20,11 +20,11 @@ | |||
20 | # see ../README for configuration instructions. | 20 | # see ../README for configuration instructions. |
21 | # | 21 | # |
22 | check process sim01 with pidfile /var/run/opensim/sim01.pid | 22 | check process sim01 with pidfile /var/run/opensim/sim01.pid |
23 | start program = "/bin/bash -c 'cd /opt/opensim/config/sim01 && /opt/opensim/sim01/start-sim -q'" | 23 | start program = "/bin/bash -c 'cd /opt/opensim/config/sim01 && /opt/opensim/config/sim01/start-sim -q'" |
24 | as uid opensim and gid opensim | 24 | as uid opensim and gid opensim |
25 | stop program = "/bin/kill -9 `cat /var/run/opensim/sim01.pid`" | 25 | stop program = "/bin/bash -c 'cd /opt/opensim/config/sim01 && /opt/opensim/config/sim01/stop-sim'" with timeout 600 seconds |
26 | # if cpu usage > 300% for 4 cycles then restart | 26 | if cpu usage > 200% for 4 cycles then restart |
27 | # if 5 restarts within 5 cycles then timeout | 27 | if 5 restarts within 5 cycles then timeout |
28 | # if failed url http://127.0.0.1:9005/jsonSimStats/ | 28 | # if failed url http://127.0.0.1:9005/jsonSimStats/ |
29 | # and content != '"SimFPS":0.0,' for 4 cycles | 29 | # and content != '"SimFPS":0.0,' for 4 cycles |
30 | # then restart | 30 | # then restart |