[Opensim-users] Opensim-users Digest, Vol 74, Issue 4
Fred
fred.b at mitsi.com
Wed Aug 5 18:10:24 UTC 2020
You edit Opensim.ini, the var you need is regionload_regionsdir, none of
you other edits do anything for you. You can make it so only one
Opensim exe and folder is used across all simulators at the same time. I
do niot know about Linux pure code sharing, but Windows will only load
the program into memory once no matter how many opensims you run.
In DreamGrid, all instances run out of that one updatable folder. I
just move Opensim.ini out and the edits in it move more files. It is
AGPL, and the souce code is at /Outworldz at Github.
Maptiles and Scriptengines never gets updated, and can be shared.
Likewise there is no GridHypergrid.ini or GridCommon.ini in an update.
So there is zrro need to move them.
You do need to rename or move ossEnable.ini. I just rename it in the
Opensim.ini include to get the renamed file.
Edits made to Opensim.ini listed below. Then I put Opensim.ini in a
opensim\bin\Regions folder for each Instance I want to run. I can thus
run s many different phsyics engines or settings as a I want for each
Instance. Dreamgrid pulls using code extra INI settings for
Opensim.,ini from each Region file and writes the OPensim.ini for you.
You could do this with grep and sed on Linux.
The name of each Instance (Dos box or bash shell) goes in the CONST
section as "RegionFolderName", such as bin\Regions
[CONST}
;# used by the one-exe-per-instance logic. This becomes the folder for
the regions file.RegionFolderName=Welcome
The above edit to Openim.ini and the following line results in the
Region running out of file being in bin\Regions\Welcome,
bin\Regions\Some Other Sim, and so on, where I put the Opensim.ini, a
folder for Datasnapshot, the Process ID, and both logs as they are
specific to that Instance.
[Startup]
; move the region ini
regionload_regionsdir=./Regions/${Const|RegionFolderName}/Region/
;I also move the PID file:
PIDFile="./Regions/${Const|RegionFolderName}/PID.pid"
;Move Datasnapshot as it is created by each region, and thus cannot be
written at the same time by two processes
snapshot_cache_directory="./Regions/${Const|RegionFolderName}/DataSnapshot"
Logs cannot be shared among instances, as multiple writes to the same
file are not possible. DreamGrid fixes this by starting each instance by
exporting a variable and getting that into the Opensim.exe.config file
Everywhere you have <file value=".\OpenSim.log" /> or other file in
the Opensim.exe.config XML file add the path ${OSIM_LOGPATH}. Opensim
knows how tand read this.
<file value="${OSIM_LOGPATH}\OpenSim.log" /> and <file
value="${OSIM_LOGPATH}\OpenSimStats.log"/>
One other tip: set the logging level programmatically by another
environment variable in the various places in Opensim.ini.config
<level value="${OSIM_LOGLEVEL}" />
Now you can use an environment variable such as OSIM_LOGLEVEL=ERROR or
ALL or WARN etc, to set it across all instances.
Launch Opensim with something like this windows file 'go.bat' as in 'go
Welcome<enter>'
The key line is
OpenSim.exe -inidirectory="Regions/%SimName%"
On Linux I think this name is $1.
Windows/DOS format:
@echo Loading %1
cd bin
set SimName=%1
set OSIM_LOGPATH = "%~dp0\bin\Regions\%SimName%"
OpenSim.exe -inidirectory="Regions/%SimName%"
cd ..
echo %SimName% has exited.
This can be easily ported to Linux bash with EXPORT.
tl;dr, all you neeed is regionload_regionsdir
__________________________
Fred Beckhusen
President
Micro Technology Services, Inc.
972-231-6874
fred.b at mitsi.com
On 8/5/2020 7:00 AM, opensim-users-request at opensimulator.org wrote:
> Send Opensim-users mailing list submissions to
> opensim-users at opensimulator.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users
> or, via email, send a message with subject or body 'help' to
> opensim-users-request at opensimulator.org
>
> You can reach the person managing the list at
> opensim-users-owner at opensimulator.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Opensim-users digest..."
>
>
> Today's Topics:
>
> 1. Map Tiles And Regions.ini (Sara Payne)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 5 Aug 2020 12:46:23 +0100
> From: Sara Payne <sarapayne.uk at gmail.com>
> To: opensim-users at opensimulator.org
> Subject: [Opensim-users] Map Tiles And Regions.ini
> Message-ID:
> <CAOvqX5vr9JmQ-LFpuCxqFUVSkzEiXmyPdzA3FtQpMUi4LxZfOA at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> Does Anyone know if it is possible to move the maptiles folder and/or
> Regions.ini
> outside the bin folder?
>
> I am trying to streamline my upgrade process. I have successfully moved
> OpenSim.ini, GridHypergrid.ini, GridCommon.ini and ossEnable.ini and the
> ScriptEngines folder outside the bin folder. But I am not seeing any
> obvious way of stating the location for the maptiles folder or Regions.ini.
>
> Both of these contain items which should not be deleted by an upgrade. I
> can, of course, write a script to handle moving them out and then moving
> them back, but I am trying to reduce those kinds of operations.
>
> Kind regards
>
> Sara
>
>
> ------------------------------
>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at opensimulator.org
> http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users
>
>
> End of Opensim-users Digest, Vol 74, Issue 4
> ********************************************
More information about the Opensim-users
mailing list