version 1.135, 2004/05/21 20:57:01
|
version 1.137, 2004/06/29 16:43:36
|
|
|
#include <Pegasus/Config/ConfigManager.h> | #include <Pegasus/Config/ConfigManager.h> |
#include <Pegasus/Client/CIMClient.h> | #include <Pegasus/Client/CIMClient.h> |
#include <Pegasus/Server/ShutdownService.h> | #include <Pegasus/Server/ShutdownService.h> |
#include <Pegasus/Common/Destroyer.h> |
|
| |
PEGASUS_USING_PEGASUS; | PEGASUS_USING_PEGASUS; |
PEGASUS_USING_STD; | PEGASUS_USING_STD; |
| |
int cimserver_run( int argc, char** argv, Boolean shutdownOption ); | int cimserver_run( int argc, char** argv, Boolean shutdownOption ); |
| |
|
Uint32 parentPid = 0; |
|
|
#if defined(PEGASUS_OS_TYPE_WINDOWS) | #if defined(PEGASUS_OS_TYPE_WINDOWS) |
# include "cimserver_windows.cpp" | # include "cimserver_windows.cpp" |
#elif defined(PEGASUS_OS_TYPE_UNIX) | #elif defined(PEGASUS_OS_TYPE_UNIX) |
|
|
// Get an instance of the Config Manager. | // Get an instance of the Config Manager. |
// | // |
configManager = ConfigManager::getInstance(); | configManager = ConfigManager::getInstance(); |
|
configManager->useConfigFiles = true; |
| |
#ifdef PEGASUS_OS_OS400 | #ifdef PEGASUS_OS_OS400 |
// In a special startup case for IBM OS400, when the server is | // In a special startup case for IBM OS400, when the server is |
|
|
MessageLoader::_useProcessLocale = false; | MessageLoader::_useProcessLocale = false; |
//l10n | //l10n |
| |
|
// Get the parent's PID before forking |
|
parentPid = System::getPID(); |
|
|
// do we need to run as a daemon ? | // do we need to run as a daemon ? |
if (daemonOption) | if (daemonOption) |
{ | { |