+1 Melanie. This scenario works for me, (as a grid operator). ~Sean Melanie wrote: > To me, what would make the most sense is this: > > - break up the Opensim.ini.example into chunks, and but them into a > config directory > - read this directory first > - then read the inimaster > - then read the inifile > - this means that new opensim.ini options would, in the future, > appear in these defaults files, which could be left unchanged in > most cases, therefore adding new options is easy on grid operators, > no more merging > > Melanie > > > Mic Bowman wrote: > >> fwiw... we use a shared inimaster as the "base" for the configuration >> of simulators running on multiple servers. then each simulator has a >> very small opensim.ini, typically just to configure the network ports >> and the storage parameters. that is, the local opensim.ini overwrites >> the shared values in the inimaster. bulk changes are easy (just change >> the inimaster) and customizations are very small. >> >> --mic >> >> >> On Wed, Mar 4, 2009 at 4:14 PM, MW <michaelwr...@yahoo.co.uk> wrote: >> >>> Well I only inserted the loading from the config folder, inbetween the two >>> existing steps. It has always been that the 'masterini' file was loaded >>> first (if one was given as a argument) and then opensim.ini (or whatever was >>> set with -inifile) was loaded. >>> >>> The original idea behind the master being that it could be a master file for >>> say a whole grid, while each one had some local changes in the >>> bin\opensim.ini. >>> >>> But I agree that it can be confusing, especially with the chosen names. So >>> maybe we do need to rethink that. >>> >>> --- On Wed, 4/3/09, Sean Hennessee <s...@uci.edu> wrote: >>> >>> From: Sean Hennessee <s...@uci.edu> >>> Subject: Re: [Opensim-dev] Ini file(s) loading >>> To: michaelwr...@yahoo.co.uk, opensim-dev@lists.berlios.de >>> Date: Wednesday, 4 March, 2009, 10:37 PM >>> >>> Yay!! +1 >>> >>> Updating ini files is often a pain. This is an excellent step in the right >>> direction. >>> >>> In this scenario, my suggestion/preference would be to have the bin/config >>> directory contain all the SVN default values, (any number of files), with NO >>> bin/opensim.ini file present by default. Then I could create a >>> bin/opensim.ini file as a very small set of overriding values specific to my >>> grids. The inimaster really wouldn't be used since it would always get >>> overwritten. >>> >>> Below are my suggestions instead of using this parsing order. >>> >>> Looking at the three steps, I'm not sure I understand the logic of the order >>> chosen. The 'inimaster' sounds like it should be the "master" and not ever >>> be overwritten, i.e. it should be parsed last. To keep things at least more >>> familiar to what they are now, I would prefer that the bin/opensim.ini file >>> be the same one it is now, the default one that comes with the SVN, and >>> parsed first. The bin/config directory would then be the second set of ini's >>> parsed to allow my multiple ini files to override the standard default. >>> Then, if one specifically identifies an inimaster, that should override >>> everything else, especially since you have to specify it on the command >>> line. My line of thinking is that if you are specifically saying "use this >>> inimaster" on the command line that would mean you really want to use it >>> only, as in a testing scenario without having to worry about default/other >>> overrides. IIRC other linux/server type programs, like sendmail, behave >>> similar to this. >>> >>> It might also be nice to have an "include" type of statement in the ini >>> file/url allowing you to reference files/urls without having them in a >>> special location as well as specifying the order you want them read instead >>> of having to make them alphabetical for order. >>> >>> Anyway, my OS$2. And thanks for working on this! >>> >>> Peace, >>> Sean >>> >>> MW wrote: >>> >>> Last week, I added the ability for opensim to search a folder for ini files >>> and load (and merge together) all of those files. >>> >>> By default it will look for the folder 'bin\config' and search that for .ini >>> files. The folder it searches can be changed by using the command line >>> argument -inidirectory=<path>. >>> >>> So now our ini loading is a three step process: >>> >>> Step 1: If the -inimaster=<filepath or url> command line argument was used, >>> load that file/url. >>> >>> Step 2: Then check if the config directory (default 'bin\config' or one set >>> by -inidirectory=<path>) exists and search that folder for ini files and >>> load them. They are merged on top of the inimaster file. So any duplicate >>> entries will be overwrote. >>> >>> Step 3: Load the inifile, which by default is 'bin\opensim.ini' but can be >>> changed by using the -inifile=<filepath or url> command line argument. This >>> again is merged on top of all previous settings so will overwrite the older >>> (from previous steps) settings. >>> >>> Now the question is how we should set things up in SVN as the default. It >>> would be nice to split up the opensim.ini, into multiple ini files in the >>> config directory. And then just have a small opensim.ini that contains the >>> values likely to change ofter, like network settings etc. >>> >>> But because the config directory overwrites the master file, this could >>> cause problems for people who have already set things up for using a master >>> file/url. Of course the simple solution for them would be just to delete the >>> config directory. >>> >>> But anyway what does everyone think? >>> >>> ________________________________ >>>
-- Sean Hennessee Central Computing Support Network & Academic Computing Services UC Irvine ... . .- -. / .... . -. -. . ... ... . . _______________________________________________ Opensim-dev mailing list Opensim-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/opensim-dev