version 1.93, 2003/05/27 21:37:03
|
version 1.93.4.1, 2003/07/29 17:54:29
|
|
|
PEGASUS_STD(cerr) << "Unable to connect to CIM Server." << PEGASUS_STD(endl); | PEGASUS_STD(cerr) << "Unable to connect to CIM Server." << PEGASUS_STD(endl); |
PEGASUS_STD(cerr) << "CIM Server may not be running." << PEGASUS_STD(endl); | PEGASUS_STD(cerr) << "CIM Server may not be running." << PEGASUS_STD(endl); |
#endif | #endif |
cimserver_exit(0); |
cimserver_exit(1); |
} | } |
| |
try | try |
|
|
// 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) |
notify_parent(); |
notify_parent(1); |
| |
exit(1); | exit(1); |
} | } |
|
|
server.bind(); | server.bind(); |
| |
// notify parent process (if there is a parent process) to terminate | // notify parent process (if there is a parent process) to terminate |
// so user knows that cimserver is ready to serve CIM requests. |
// so user knows that there is cimserver ready to serve CIM requests. |
if (daemonOption) | if (daemonOption) |
notify_parent(); |
notify_parent(0); |
| |
time_t last = 0; | time_t last = 0; |
| |
|
|
} | } |
catch(Exception& e) | catch(Exception& e) |
{ | { |
#ifdef PEGASUS_OS_OS400 |
|
Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::WARNING, | Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::WARNING, |
"Error: $0", e.getMessage()); | "Error: $0", e.getMessage()); |
#else |
|
|
#ifndef PEGASUS_OS_OS400 |
PEGASUS_STD(cerr) << "Error: " << e.getMessage() << PEGASUS_STD(endl); | PEGASUS_STD(cerr) << "Error: " << e.getMessage() << PEGASUS_STD(endl); |
#endif | #endif |
| |
|
|
// 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) |
notify_parent(); |
notify_parent(1); |
| |
return 1; | return 1; |
} | } |