version 1.228.2.4, 2010/05/21 08:56:21
|
version 1.229, 2009/01/21 01:37:17
|
|
|
| |
#endif /* PEGASUS_ENABLE_PRIVILEGE_SEPARATION */ | #endif /* PEGASUS_ENABLE_PRIVILEGE_SEPARATION */ |
| |
static void _initConfigProperty(const String &propName, Uint32 value) |
|
{ |
|
char strValue[22]; |
|
Uint32 n; |
|
const char *startP = Uint32ToString( |
|
strValue, |
|
value, |
|
n); |
|
ConfigManager::getInstance()->initCurrentValue(propName, String(startP, n)); |
|
} |
|
|
|
///////////////////////////////////////////////////////////////////////// | ///////////////////////////////////////////////////////////////////////// |
// MAIN | // MAIN |
////////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////////// |
|
|
// | // |
portNumberHttp = System::lookupPort( | portNumberHttp = System::lookupPort( |
WBEM_HTTP_SERVICE_NAME, WBEM_DEFAULT_HTTP_PORT); | WBEM_HTTP_SERVICE_NAME, WBEM_DEFAULT_HTTP_PORT); |
_initConfigProperty("httpPort", portNumberHttp); |
|
} | } |
else | else |
{ | { |
|
|
// | // |
portNumberHttps = System::lookupPort( | portNumberHttps = System::lookupPort( |
WBEM_HTTPS_SERVICE_NAME, WBEM_DEFAULT_HTTPS_PORT); | WBEM_HTTPS_SERVICE_NAME, WBEM_DEFAULT_HTTPS_PORT); |
_initConfigProperty("httpsPort", portNumberHttps); |
|
} | } |
else | else |
{ | { |
|
|
parms); | parms); |
cerr << MessageLoader::getMessage(parms) << endl; | cerr << MessageLoader::getMessage(parms) << endl; |
| |
deleteCIMServer(); |
|
|
|
// | // |
// notify parent process (if there is a parent process) to terminate | // notify parent process (if there is a parent process) to terminate |
// | // |
if (daemonOption) | if (daemonOption) |
_cimServerProcess->notify_parent(1); | _cimServerProcess->notify_parent(1); |
| |
|
deleteCIMServer(); |
return 1; | return 1; |
} | } |
| |
|
|
#ifdef PEGASUS_ENABLE_SLP | #ifdef PEGASUS_ENABLE_SLP |
_cimServer->startSLPProvider(); | _cimServer->startSLPProvider(); |
#endif | #endif |
_cimServer->initComplete(); |
|
|
|
// | // |
// Loop to call CIMServer's runForever() method until CIMServer | // Loop to call CIMServer's runForever() method until CIMServer |
// has been shutdown | // has been shutdown |