version 1.237, 2010/06/07 11:16:36
|
version 1.240, 2011/12/21 12:32:07
|
|
|
| |
//Windows service variables are not defined elsewhere in the product | //Windows service variables are not defined elsewhere in the product |
//enable ability to override these | //enable ability to override these |
|
#ifndef PEGASUS_FLAVOR |
#ifndef PEGASUS_SERVICE_NAME | #ifndef PEGASUS_SERVICE_NAME |
#define PEGASUS_SERVICE_NAME "Pegasus CIM Object Manager"; | #define PEGASUS_SERVICE_NAME "Pegasus CIM Object Manager"; |
#endif | #endif |
#ifndef PEGASUS_SERVICE_DESCRIPTION | #ifndef PEGASUS_SERVICE_DESCRIPTION |
#define PEGASUS_SERVICE_DESCRIPTION "Pegasus CIM Object Manager Service"; | #define PEGASUS_SERVICE_DESCRIPTION "Pegasus CIM Object Manager Service"; |
#endif | #endif |
|
#else |
|
#ifndef PEGASUS_SERVICE_NAME |
|
#define PEGASUS_SERVICE_NAME PEGASUS_FLAVOR " Pegasus CIM Object Manager" |
|
#endif |
|
#ifndef PEGASUS_SERVICE_DESCRIPTION |
|
#define PEGASUS_SERVICE_DESCRIPTION PEGASUS_FLAVOR \ |
|
" Pegasus CIM Object Manager Service"; |
|
#endif |
|
#endif |
| |
#ifdef PEGASUS_OS_PASE | #ifdef PEGASUS_OS_PASE |
#include <as400_protos.h> //for _SETCCSID | #include <as400_protos.h> //for _SETCCSID |
|
|
Thread::clearLanguages(); | Thread::clearLanguages(); |
delete dummyInitialThread; | delete dummyInitialThread; |
} | } |
|
_serverRunStatus.setServerNotRunning(); |
} | } |
| |
// | // |
|
|
// | // |
if (shutdownOption) | if (shutdownOption) |
{ | { |
|
#if defined(PEGASUS_OS_ZOS) && defined(PEGASUS_ZOS_SECURITY) |
|
// This checks whether user is authorized to stop the |
|
// CIM Server. When unauthorized a message is logged to |
|
// to the user and program exits. |
|
shutdownCheckProfileCIMSERVclassWBEM(); |
|
// Depending on the success of the previous check we may not |
|
// reach this code!!! |
|
#endif |
String configTimeout = | String configTimeout = |
configManager->getCurrentValue("shutdownTimeout"); | configManager->getCurrentValue("shutdownTimeout"); |
Uint32 timeoutValue = | Uint32 timeoutValue = |