[omniORB] Error: log file 'C:\temp\omniorb\omninames-MEDING.log'exists. Can't use -start option.

JHJE (Jan Holst Jensen) jhje at novonordisk.com
Fri Dec 8 18:44:21 GMT 2006


> Do I really have to manually delete the name service log file 
> (and it's
> backup file) EVERY time I start the name service?
> 
> Here are the commands I use to start the name service:
>   set OMNINAMES_LOGDIR=C:\temp\omniorb
>   omninames -start

Hi Olaf.

You should only use '-start' the first time you start omniNames. It
actually says so when you start it with incorrect parameters:

  usage: omniNames [-start [<port>]]
                   [-logdir <directory name>]
                   [-errlog <file name>]
                   [-ignoreport]
                   [<omniORB-options>...]

  Use -start option to start omniNames for the first time.
  ...
  ...

Would of course be nice if the omniNames doc said so as well.

> Secondly, the name service refuses to start if the log directory does
> not exist, why can't the name service just automatically create the
> directory?

I suppose so, but consider the case where you have misconfigured (e.g.
copy/pasted a configuration from another server) and omniNames starts
creating and writing to a wrong location... For a server-side piece of
software I prefer the current behavior - the least surprising.

Cheers
-- Jan Holst Jensen, Denmark



More information about the omniORB-list mailing list