For us FreeBSD users.. default configfile location

Started by possamai, April 19, 2015, 03:00:38 PM

Previous topic - Next topic

possamai

I'm not much of a coder but this seems to be a pretty simple request......
It's not about NetXMS itself but about building it.

FreeBSD has the normal location for configfiles set to /etc but the place for configfile of installed software is /usr/local/etc
Now it is possible to change the configfile location from the commandline during startup but it would be even more awesome if a ./configure option could set the default during build..

Do you think that's possible?
I have not read the code (it wouldn't make sens to me anyway) so I don't know if you use a static configpath somewhere but if you don't then this should be a jiffy..

Victor Kirhenshtein

Hi,

if you do not specify config file in command line, both agent and server will look into /<install prefix>/etc and only then in /etc - so if you build with default prefix /usr/local it will check /usr/local/etc first.

Best regards,
Victor

possamai

That's awesome :) :) :)
Thanks!
I use a prefix /usr/local/netxms so I never noticed..