version 1.223, 2008/10/17 11:07:42
|
version 1.225, 2008/11/20 20:52:34
|
|
|
MessageLoader::setPegasusMsgHome(ConfigManager::getHomedPath( | MessageLoader::setPegasusMsgHome(ConfigManager::getHomedPath( |
ConfigManager::getInstance()->getCurrentValue("messageDir"))); | ConfigManager::getInstance()->getCurrentValue("messageDir"))); |
| |
|
#if !defined(PEGASUS_USE_SYSLOGS) |
|
String logsDirectory = ConfigManager::getHomedPath( |
|
configManager->getCurrentValue("logdir")); |
|
|
|
// Set up the Logger. This does not open the logs. |
|
// Might be more logical to clean before set. |
|
Logger::setHomeDirectory(logsDirectory); |
|
#endif |
|
|
|
|
#ifdef PEGASUS_OS_PASE | #ifdef PEGASUS_OS_PASE |
|
/* write job log to tell where pegasus log is.*/ |
|
if(logsDirectory.size() > 0) |
|
// this function only can be found in PASE environment |
|
logPegasusDir2joblog(logsDirectory.getCString()); |
|
else |
|
logPegasusDir2joblog("."); |
|
|
// set ccsid to unicode for entire job | // set ccsid to unicode for entire job |
// ccsid is globolization mechanism in PASE environment | // ccsid is globolization mechanism in PASE environment |
if (_SETCCSID(1208) == -1) | if (_SETCCSID(1208) == -1) |
|
|
| |
char fullJobName[29]; | char fullJobName[29]; |
umeGetJobName(fullJobName, true); | umeGetJobName(fullJobName, true); |
Logger::put_l(Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION, |
Logger::put_l(Logger::STANDARD_LOG, System::CIMSERVER, |
|
Logger::INFORMATION, |
MessageLoaderParms( | MessageLoaderParms( |
"src.Server.cimserver.SERVER_JOB_NAME.PEGASUS_OS_PASE", | "src.Server.cimserver.SERVER_JOB_NAME.PEGASUS_OS_PASE", |
"CIM Server's Job Name is: $0", fullJobName)); | "CIM Server's Job Name is: $0", fullJobName)); |
|
|
daemonOption = true; | daemonOption = true; |
} | } |
| |
#if !defined(PEGASUS_USE_SYSLOGS) |
|
String logsDirectory = ConfigManager::getHomedPath( |
|
configManager->getCurrentValue("logdir")); |
|
|
|
// Set up the Logger. This does not open the logs. |
|
// Might be more logical to clean before set. |
|
Logger::setHomeDirectory(logsDirectory); |
|
|
|
# ifdef PEGASUS_OS_PASE |
|
/* write job log to tell where pegasus log is.*/ |
|
if(logsDirectory.size() > 0) |
|
// this function only can be found in PASE environment |
|
logPegasusDir2joblog(logsDirectory.getCString()); |
|
else |
|
logPegasusDir2joblog("."); |
|
# endif |
|
#endif |
|
|
|
// | // |
// Check to see if we need to shutdown CIMOM | // Check to see if we need to shutdown CIMOM |
// | // |
|
|
_cimServer->addAcceptor(HTTPAcceptor::IPV4_CONNECTION, | _cimServer->addAcceptor(HTTPAcceptor::IPV4_CONNECTION, |
portNumberHttp, false); | portNumberHttp, false); |
} | } |
|
// The port number is converted to a string to avoid the |
|
// addition of localized characters (e.g., "5,988"). |
char scratchBuffer[22]; | char scratchBuffer[22]; |
Uint32 n; | Uint32 n; |
const char * portNumberHttpStr = Uint32ToString( | const char * portNumberHttpStr = Uint32ToString( |
|
|
_cimServer->addAcceptor(HTTPAcceptor::IPV4_CONNECTION, | _cimServer->addAcceptor(HTTPAcceptor::IPV4_CONNECTION, |
portNumberHttps, true); | portNumberHttps, true); |
} | } |
|
// The port number is converted to a string to avoid the |
|
// addition of localized characters (e.g., "5,989"). |
char scratchBuffer[22]; | char scratchBuffer[22]; |
Uint32 n; | Uint32 n; |
const char * portNumberHttpsStr = Uint32ToString( | const char * portNumberHttpsStr = Uint32ToString( |