version 1.80, 2002/10/29 22:19:55
|
version 1.81, 2002/10/30 20:33:00
|
|
|
// The server job may still be active but not responding. | // The server job may still be active but not responding. |
// Kill the job if it exists. | // Kill the job if it exists. |
cimserver_kill(); | cimserver_kill(); |
|
return; |
#endif | #endif |
exit(0); | exit(0); |
} | } |
|
|
#ifdef PEGASUS_OS_OS400 | #ifdef PEGASUS_OS_OS400 |
// Kill the server job. | // Kill the server job. |
cimserver_kill(); | cimserver_kill(); |
|
return; |
#endif | #endif |
exit(1); | exit(1); |
} | } |
|
|
shutdownCIMOM(timeoutValue); | shutdownCIMOM(timeoutValue); |
| |
cout << "CIM Server stopped." << endl; | cout << "CIM Server stopped." << endl; |
|
#ifdef PEGASUS_OS_OS400 |
|
return(0); |
|
#endif |
exit(0); | exit(0); |
} | } |
| |
|
|
if (daemonOption) | if (daemonOption) |
{ | { |
if(-1 == cimserver_fork()) | if(-1 == cimserver_fork()) |
|
#ifndef PEGASUS_OS_OS400 |
exit(-1); | exit(-1); |
|
#else |
|
return(-1); |
|
else |
|
return(0); |
|
#endif |
} | } |
| |
#ifdef PEGASUS_OS_OS400 | #ifdef PEGASUS_OS_OS400 |