version 1.60, 2002/06/04 01:42:38
|
version 1.62, 2002/06/07 15:17:15
|
|
|
if (String::equal(configManager->getCurrentValue("daemon"), "true")) | if (String::equal(configManager->getCurrentValue("daemon"), "true")) |
{ | { |
daemonOption = true; | daemonOption = true; |
|
// do we need to run as a daemon ? |
|
if (daemonOption) |
|
{ |
|
if(-1 == cimserver_fork()) |
|
exit(-1); |
|
} |
} | } |
| |
// | // |
|
|
<< (useSSL ? " Use SSL " : " No SSL ") | << (useSSL ? " Use SSL " : " No SSL ") |
<< endl; | << endl; |
| |
// do we need to run as a daemon ? |
|
if (daemonOption) |
|
{ |
|
if(-1 == cimserver_fork()) |
|
exit(-1); |
|
} |
|
| |
// try loop to bind the address, and run the server | // try loop to bind the address, and run the server |
try | try |
|
|
// free(host_name); | // free(host_name); |
#endif | #endif |
| |
Monitor monitor; |
Monitor monitor(true); |
CIMServer server(&monitor, useSSL); | CIMServer server(&monitor, useSSL); |
| |
// bind throws an exception if the bind fails | // bind throws an exception if the bind fails |
|
|
PEGASUS_NAME, PEGASUS_VERSION, address); | PEGASUS_NAME, PEGASUS_VERSION, address); |
| |
| |
|
|
// | // |
// Loop to call CIMServer's runForever() method until CIMServer | // Loop to call CIMServer's runForever() method until CIMServer |
// has been shutdown | // has been shutdown |