41 #define BES_CONF getenv("BES_CONF")
43 BESKeys *TheBESKeys::_instance = 0;
54 string try_ini =
"/usr/local/etc/bes/bes.conf" ;
56 int statret = stat( try_ini.c_str(), &buf ) ;
57 if ( statret == -1 || !S_ISREG( buf.st_mode ) )
59 try_ini =
"/etc/bes/bes.conf" ;
60 int statret = stat( try_ini.c_str(), &buf ) ;
61 if ( statret == -1 || !S_ISREG( buf.st_mode ) )
63 try_ini =
"/usr/etc/bes/bes.conf" ;
64 int statret = stat( try_ini.c_str(), &buf ) ;
65 if ( statret == -1 || !S_ISREG( buf.st_mode ) )
67 string s = (string)
"Unable to locate BES config file. "
68 +
"Please either pass -c "
69 +
"option when starting the BES, set "
70 +
"the environment variable BES_CONF, "
71 +
"or install in /usr/local/etc/bes/bes.conf "
72 +
"or /etc/bes/bes.conf." ;