[ofa-general] Re: OpenSM script inconsistency ?

Sasha Khapyorsky sashak at voltaire.com
Tue Sep 30 14:29:25 PDT 2008


On 17:18 Tue 30 Sep     , Hal Rosenstock wrote:
> >>
> >> include/config.h:#define HAVE_DEFAULT_OPENSM_CONFIG_FILE "/usr/local/etc/opensm/
> >> opensm.conf"
> >
> > Right, when prefix is '/usr/local'.
> 
> Isn't that the default prefix ?

Yes, it is.

> >> but:
> >> scripts/redhat-opensm.init.in:# config: @sysconfdir@/sysconfig/opensm.conf
> >> scripts/redhat-opensm.init.in:CONFIG=@sysconfdir@/sysconfig/opensm.conf
> >> scripts/sldd.sh.in:# config: @sysconfdir@/sysconfig/opensm.conf
> >> scripts/sldd.sh.in:[ -f @sysconfdir@/sysconfig/opensm.conf ] && CONFIG=@sysconfd
> >> ir@/sysconfig/opensm.conf
> >
> > yes, and:
> >
> > scripts/redhat-opensm.init:# config: ${prefix}/etc/sysconfig/opensm.conf
> > scripts/redhat-opensm.init:prefix=/usr/local
> > scripts/redhat-opensm.init:CONFIG=${prefix}/etc/sysconfig/opensm.conf
> >
> >> This doesn't look consistent to me.
> >
> > What is not consistent? It is all depends from ./configure's options
> > --prefix, --sysconfdir, etc.
> 
> They are not consistent with defaults. Isn't opensm.conf in
> .../etc/opensm/ by default (not .../etc/sysconfig/) ?

I see. In this script "sysconfig/opensm.conf" is not OpenSM config file,
but legacy script/config file for this particular script (which is
optional too).

> >> I know RedHat wants things in
> >> certain places.
> >
> > Yes, they are running with "prefix=/usr", etc..
> 
> That's the prefix part and not the other pieces.
> 
> >> Shouldn't that be documented somewhere ? Also, what
> >> about sldd ? Is that for RedHat or general ?
> >
> > I don't know much about who is using sldd.sh. Currently it is installed
> > by RPM for any distro.
> 
> Looks to me to be consistent with RedHat script but not defaults.

Do you mean start_sldd(), etc functions in redhat script? Assuming so,
why it should be same for any distro, or why it should be there at all?
I don't know, I don't have any feedback from sldd.sh users.

Sasha



More information about the general mailing list