aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/example
diff options
context:
space:
mode:
authoronefang2020-09-08 21:31:56 +1000
committeronefang2020-09-08 21:31:56 +1000
commitf92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b (patch)
treed78dfa6bf1f8aa4ae47423ddcd3c778be8811e57 /example
parentAdd examples directory. (diff)
downloadopensim-SC-f92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b.zip
opensim-SC-f92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b.tar.gz
opensim-SC-f92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b.tar.bz2
opensim-SC-f92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b.tar.xz
Add the old bash scripts.
Most of these will eventually be rewritten as C + Lua.
Diffstat (limited to '')
-rw-r--r--example/config/config.ini47
-rw-r--r--example/config/sim_skeleton/ThisSim.ini44
-rwxr-xr-xexample/start.sh16
3 files changed, 107 insertions, 0 deletions
diff --git a/example/config/config.ini b/example/config/config.ini
new file mode 100644
index 0000000..e95b04c
--- /dev/null
+++ b/example/config/config.ini
@@ -0,0 +1,47 @@
1; The Const section allows us to define some basic information that we
2; will use throughout our configuration. We will provide examples for
3; setting the base url of the ROBUST server and the public and private ports
4; it uses. Changing the values of the constants will set the operating
5; parameters thoughout the configuration. Other constants that may prove
6; to be useful may be added to the followin section. They may be
7; referenced anywhere in the configuration by using ${Const|Name}. One
8; such use is providing a base path for setting locations that ROBUST
9; uses to write data.
10
11; Also put grid specific stuff here.
12
13
14[Paths]
15 AssetsPath = "../../AssetFiles"
16 BackupPath = "../../backups"
17 CachePath = "../../caches"
18 ConfigPath = "../../config"
19 DbPath = "../../db"
20 LogPath = "../../logs"
21 WebPath = "../../web"
22
23[Const]
24 MOTD = "Welcome to your local grid."
25
26 GridName = "localhost Grid"
27 ShortGridName = "lg"
28
29 ; For a grid these will usually be the externally accessible IP/DNS
30 ; name and use default public port 8002 and default private port 8003
31 ; For a standalone this will usually be the externally accessible IP/DNS
32 ; name and use default public port 9000. The private port is not used
33 ; in the configuration for a standalone.
34 BaseHostname = "127.0.0.1"
35 HostName = "localhost"
36 BaseURL = http://${Const|BaseHostname}
37 GridURL = http://${Const|BaseHostname}
38
39 PublicPort = "8002"
40 PrivatePort = "8003"
41
42 ; The public port of the ROBUST asset server, which might be different.
43 AssetServerPort = "8003"
44
45 ; Database credentials.
46 DataProvider = "OpenSim.Data.MySQL.dll"
47 ConnectionString = "Data Source=MYSQL_HOST;Database=MYSQL_DB;User ID=MYSQL_USER;Password=MYSQL_PASSWORD;Old Guids=true;"
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/start.sh b/example/start.sh
new file mode 100755
index 0000000..c479f78
--- /dev/null
+++ b/example/start.sh
@@ -0,0 +1,16 @@
1#!/bin/bash
2
3cd /opt/opensim_SC/current/bin
4
5source ../../common.sh
6
7USER=$(whoami)
8
9if [ $USER = "${OS_USER}" ]
10then
11 SUDO=""
12else
13 SUDO="sudo -Hu ${OS_USER}"
14fi
15
16${SUDO} mono OpenSim.exe -inidirectory=../../config/sim01