version 1.27.18.2, 2007/07/03 21:50:09
|
version 1.29, 2007/04/12 16:53:17
|
|
|
return PEGASUS_CIMSERVER_START_FILE; | return PEGASUS_CIMSERVER_START_FILE; |
} | } |
| |
int cimserver_run( |
int cimserver_run(int argc, char** argv, bool shutdownOption); |
int argc, |
|
char** argv, |
|
Boolean shutdownOption, |
|
Boolean debugOutputOption); |
|
| |
void cimserver_stop(void); | void cimserver_stop(void); |
}; | }; |
|
|
////////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////////// |
int main(int argc, char** argv) | int main(int argc, char** argv) |
{ | { |
String pegasusHome = String::EMPTY; |
String pegasusHome; |
Boolean shutdownOption = false; | Boolean shutdownOption = false; |
Boolean debugOutputOption = false; |
|
| |
//l10n | //l10n |
// Set Message loading to process locale | // Set Message loading to process locale |
|
|
// Do the plaform specific run | // Do the plaform specific run |
// | // |
| |
return _cimServerProcess->platform_run( |
return _cimServerProcess->platform_run( argc, argv, shutdownOption ); |
argc, argv, shutdownOption, debugOutputOption); |
|
} | } |
| |
void CIMServerProcess::cimserver_stop() | void CIMServerProcess::cimserver_stop() |
|
|
// specific runs may need to deal with bettter (instead of exit(), etc). | // specific runs may need to deal with bettter (instead of exit(), etc). |
// | // |
| |
int CIMServerProcess::cimserver_run( |
int CIMServerProcess::cimserver_run( int argc, char** argv, Boolean shutdownOption ) |
int argc, |
|
char** argv, |
|
Boolean shutdownOption, |
|
Boolean debugOutputOption) |
|
{ | { |
String logsDirectory = String::EMPTY; |
String logsDirectory; |
Boolean daemonOption = false; | Boolean daemonOption = false; |
| |
// | // |
|
|
if (os400StartupOption == false) | if (os400StartupOption == false) |
{ | { |
#endif | #endif |
// Get the log file directory definition. |
|
// We put String into Cstring because |
|
// Directory functions only handle Cstring. |
|
// ATTN-KS: create String based directory functions. |
|
|
|
logsDirectory = configManager->getCurrentValue("logdir"); |
|
logsDirectory = | logsDirectory = |
ConfigManager::getHomedPath(configManager->getCurrentValue("logdir")); | ConfigManager::getHomedPath(configManager->getCurrentValue("logdir")); |
#ifdef PEGASUS_OS_OS400 | #ifdef PEGASUS_OS_OS400 |
|
|
| |
if (enableHttpConnection) | if (enableHttpConnection) |
{ | { |
#ifdef PEGASUS_ENABLE_IPV6 |
_cimServer->addAcceptor(false, portNumberHttp, false, false); |
_cimServer->addAcceptor(HTTPAcceptor::IPV6_CONNECTION, |
|
portNumberHttp, false); |
|
#endif |
|
|
|
#if !defined (PEGASUS_ENABLE_IPV6) || defined (PEGASUS_OS_TYPE_WINDOWS) |
|
_cimServer->addAcceptor(HTTPAcceptor::IPV4_CONNECTION, |
|
portNumberHttp, false); |
|
#endif |
|
|
|
//l10n | //l10n |
//Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION, | //Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION, |
//"Listening on HTTP port $0.", portNumberHttp); | //"Listening on HTTP port $0.", portNumberHttp); |
|
|
} | } |
if (enableHttpsConnection) | if (enableHttpsConnection) |
{ | { |
#ifdef PEGASUS_ENABLE_IPV6 |
_cimServer->addAcceptor(false, portNumberHttps, true, false); |
_cimServer->addAcceptor(HTTPAcceptor::IPV6_CONNECTION, |
|
portNumberHttps, true); |
|
#endif |
|
|
|
#if !defined (PEGASUS_ENABLE_IPV6) || defined (PEGASUS_OS_TYPE_WINDOWS) |
|
_cimServer->addAcceptor(HTTPAcceptor::IPV4_CONNECTION, |
|
portNumberHttps, true); |
|
#endif |
|
|
|
//l10n | //l10n |
//Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION, | //Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION, |
//"Listening on HTTPS port $0.", portNumberHttps); | //"Listening on HTTPS port $0.", portNumberHttps); |
|
|
} | } |
| |
#ifndef PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET | #ifndef PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET |
_cimServer->addAcceptor(HTTPAcceptor::LOCAL_CONNECTION, 0, false); |
_cimServer->addAcceptor(true, 0, false, false); |
//l10n | //l10n |
//Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION, | //Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION, |
//"Listening on local connection socket."); | //"Listening on local connection socket."); |