[ofa-general] Re: [PATCH] opensm: chdir to / in the daemon mode
Sasha Khapyorsky
sashak at voltaire.com
Mon Mar 26 15:53:47 PDT 2007
On Mon, 2007-03-26 at 07:59 -0500, Hal Rosenstock wrote:
> > >
> > > That is the default dierctory for the log file too.
> > >
> > > #define OSM_DEFAULT_TMP_DIR "/var/log/"
> > > #define OSM_DEFAULT_LOG_FILE "/var/log/osm.log"
> >
> > Yes, but log and/or tmp directory has different purpose which doesn't
> > serve the patch goal.
>
> So is an OSM_DEFAULT_CORE_DIR needed then ?
We could add OSM_DEFAULT_DAEMON_WORKING_DIR (which will be "/"), but
since this is related only for the daemon mode for me it looks like
overkill.
And if it is really important for us to run OpenSM daemon in the
directory which is not '/' (but is it?), when I guess we need or to add
new command line option, or as suggested by Michael just to drop this
responsibility to the user and to run the daemon in current directory
(no patches are required in this case).
Sasha
More information about the general
mailing list