[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New server class with useful options



-- Falko Braeutigam <falko@softwarebuero.de> wrote:

>>   i) The "-c" option will cause the server to create a new database (just
>> like the install tool) if it doesn't find a config.properties file in the
>> specified directory.
> But a config.properties file does always indicate that the database is
> okay. Maybe it's a better idea to let -c create the db no matter what?

I was using this when I wanted a new database.  I'd wipe the old database
manually.  I could then run ozone and it would set itself up with a fresh
database.

I like this "get me running, creating the DB is you have to" functionality.
It means that a '-c' can be put in the 'ozone' shell script and noone ever
has to worry about running install again.  Without the check for
'config.properties' you have to have a different command line the first
time you run - you may as well just run the install program.  However, if
you can think of a better check than checking for the existance of
'config.properties', that might be good.  For example, if there were a file
'ozoneDB.properties' that would be less likely to exist in a random folder.

Of course, a '-C' (as opposed to '-c') option that always created the
database (wiping the current one if it exists) might be useful AS WELL.

>>   (This also means that the following code can be removed from line 149
>>   of Env.java:

> Oh, ohhh... dirty little hack... :) I've completely deleted those "hard
> wired" users.

Yeah, I thought that was a bit of a security hole.

\x/ill         :-}