aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/example/config/sim_skeleton
diff options
context:
space:
mode:
Diffstat (limited to 'example/config/sim_skeleton')
-rw-r--r--example/config/sim_skeleton/ThisSim.ini44
-rw-r--r--example/config/sim_skeleton/opensim-monit.conf29
2 files changed, 73 insertions, 0 deletions
diff --git a/example/config/sim_skeleton/ThisSim.ini b/example/config/sim_skeleton/ThisSim.ini
new file mode 100644
index 0000000..44749bb
--- /dev/null
+++ b/example/config/sim_skeleton/ThisSim.ini
@@ -0,0 +1,44 @@
1[Const]
2 mysim="SIM_NUMBER"
3
4[Startup]
5 PIDFile = "${Paths|CachePath}/sim${Const|mysim}.pid"
6 LogFile = "${Paths|LogPath}/OpenSim_sim${Const|mysim}.log"
7 StatsLogFile = "${Paths|LogPath}/OpenSimStats_sim${Const|mysim}.log"
8 ConsoleHistoryFile = "${Paths|LogPath}/OpenSimConsoleHistory_sim${Const|mysim}.txt"
9
10[Region]
11 RegionName = "SIM_NAME"
12 RegionUUID = "SIM_UUID"
13 Location = "SIM_POS"
14 InternalPort = "SIM_INT_PORT"
15 RegionType = "private sim"
16 SizeX = SIM_SIZE
17 SizeY = SIM_SIZE
18 SizeZ = 16384
19 MaxAgents = 100
20 MaxPrims = 45000
21 PhysicalPrimMax = 640
22 NonPhysicalPrimMax = 2560
23 ClampPrimSize = False
24 MaptileStaticUUID = "00000000-0000-0000-0000-000000000000"
25 ; NonPhysicalPrimMin = 0
26 ; PhysicalPrimMin = 0
27 ; MaxPrimsPerUser = -1
28 ; LinksetPrims = 0
29 ; DefaultLanding = "<128, 128, 30>"
30 ; MaptileStaticFile = ""
31 ; ScopeID = "00000000-0000-0000-0000-000000000000"
32 ; Datastore = ""
33 ; ResolveAddress = ""
34
35[Network]
36 http_listener_port = SIM_PORT
37
38[Performance]
39 ;; Select the performance characteristics of OpenSim.
40 ; Include-Performance = "config-include/SimFast.ini"
41 Include-Performance = "config-include/SimBalanced.ini"
42 ; Include-Performance = "config-include/SimDefault.ini"
43 ; Include-Performance = "config-include/SimLean.ini"
44
diff --git a/example/config/sim_skeleton/opensim-monit.conf b/example/config/sim_skeleton/opensim-monit.conf
new file mode 100644
index 0000000..fd9220f
--- /dev/null
+++ b/example/config/sim_skeleton/opensim-monit.conf
@@ -0,0 +1,29 @@
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 OS_PATH/caches/simSIM_NUMBER.pid
17 start program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd OS_PATH/config/simSIM_NUMBER && OS_PATH/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 OS_PATH/config/simSIM_NUMBER && OS_PATH/config/simSIM_NUMBER/stop-sim'" with timeout 600 seconds
20 if cpu usage > 50% for 4 cycles then restart
21 if MEMORY usage > 10% 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