aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/config/sim01
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-12-09 15:25:42 +1000
committerDavid Walter Seikel2016-12-09 15:25:42 +1000
commit8655cc7f909876d793f7a71be3b6b4ac589fc91c (patch)
tree0fd515591892d400f86d77acb8090e3eb66a4287 /config/sim01
parentUse IG sims instead of 'Gabba project sims. (diff)
downloadopensim-SC_OLD-8655cc7f909876d793f7a71be3b6b4ac589fc91c.zip
opensim-SC_OLD-8655cc7f909876d793f7a71be3b6b4ac589fc91c.tar.gz
opensim-SC_OLD-8655cc7f909876d793f7a71be3b6b4ac589fc91c.tar.bz2
opensim-SC_OLD-8655cc7f909876d793f7a71be3b6b4ac589fc91c.tar.xz
Move the example sim to a sim skeleton, suitable for scripting.
Diffstat (limited to 'config/sim01')
-rw-r--r--config/sim01/My_sim.xml13
-rw-r--r--config/sim01/ThisSim.ini6
-rw-r--r--config/sim01/opensim-monit.conf29
3 files changed, 0 insertions, 48 deletions
diff --git a/config/sim01/My_sim.xml b/config/sim01/My_sim.xml
deleted file mode 100644
index 2f893ad..0000000
--- a/config/sim01/My_sim.xml
+++ /dev/null
@@ -1,13 +0,0 @@
1<Nini>
2 <Section Name="My sim">
3 <Key Name="RegionUUID" Value="ffffffff-ffff-ffff-ffff-ffffffffffff" />
4 <Key Name="Location" Value="10000,10000" />
5 <Key Name="InternalAddress" Value="0.0.0.0" />
6 <Key Name="InternalPort" Value="9106" />
7 <Key Name="AllowAlternatePorts" Value="False" />
8 <Key Name="ExternalHostName" Value="SYSTEMIP" />
9 <Key Name="RegionType" Value="private sim" />
10 <Key Name="SizeX" Value="256" />
11 <Key Name="SizeY" Value="256" />
12 </Section>
13</Nini>
diff --git a/config/sim01/ThisSim.ini b/config/sim01/ThisSim.ini
deleted file mode 100644
index e7953ab..0000000
--- a/config/sim01/ThisSim.ini
+++ /dev/null
@@ -1,6 +0,0 @@
1[Startup]
2 PIDFile = "/var/run/opensim/sim01.pid"
3 regionload_regionsdir="/opt/opensim/config/sim01"
4
5[Network]
6 http_listener_port = 9105
diff --git a/config/sim01/opensim-monit.conf b/config/sim01/opensim-monit.conf
deleted file mode 100644
index 9d66ce6..0000000
--- a/config/sim01/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 sim01 with pidfile /var/run/opensim/sim01.pid
17 start program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd /opt/opensim/config/sim01 && /opt/opensim/config/sim01/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/sim01 && /opt/opensim/config/sim01/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