version 1.26, 2001/06/19 14:20:57
|
version 1.27, 2001/06/19 23:53:41
|
|
|
"Removes Pegasus as a Windows NT Service "}, | "Removes Pegasus as a Windows NT Service "}, |
{"debug", "false", false, Option::BOOLEAN, 0, 0, "d", | {"debug", "false", false, Option::BOOLEAN, 0, 0, "d", |
"Not Used "}, | "Not Used "}, |
{"slp", "true", false, Option::BOOLEAN, 0, 0, "slp", |
{"slp", "false", false, Option::BOOLEAN, 0, 0, "slp", |
"Register Pegasus as a Service with SLP"} | "Register Pegasus as a Service with SLP"} |
}; | }; |
const Uint32 NUM_OPTIONS = sizeof(optionsTable) / sizeof(optionsTable[0]); | const Uint32 NUM_OPTIONS = sizeof(optionsTable) / sizeof(optionsTable[0]); |
|
|
Logger::clean(logsDirectory);; | Logger::clean(logsDirectory);; |
} | } |
| |
|
// Option to Display the options table. Primarily |
|
// a diagnostic tool. |
|
if (om.valueEquals("options", "true")) |
|
om.print(); |
|
|
// Leave this in until people get familiar with the logs. | // Leave this in until people get familiar with the logs. |
cout << "Logs Directory = " << logsDirectory << endl; | cout << "Logs Directory = " << logsDirectory << endl; |
| |
|
Boolean useSLP = (om.valueEquals("slp", "true")) ? true: false; |
| |
char* address = portOption.allocateCString(); | char* address = portOption.allocateCString(); |
| |
|
|
cout <<"Started..." | cout <<"Started..." |
<< (pegasusIOTrace ? " Tracing to Display ": " ") | << (pegasusIOTrace ? " Tracing to Display ": " ") |
<< (pegasusIOLog ? " Tracing to Log ": " ") | << (pegasusIOLog ? " Tracing to Log ": " ") |
|
<< (useSLP ? " SLP reg. " : " No SLP ") |
<< endl; | << endl; |
| |
// Option to Display the options table. Primarily |
|
// a diagnostic tool. |
|
if (om.valueEquals("options", "true")) |
|
om.print(); |
|
|
|
Boolean useSLP = (om.valueEquals("slp", "true")) ? true: false; |
|
|
|
// Put server start message to the logger | // Put server start message to the logger |
Logger::put(Logger::STANDARD_LOG, "CIMServer", Logger::INFORMATION, | Logger::put(Logger::STANDARD_LOG, "CIMServer", Logger::INFORMATION, |
"Start $0 $1 port $2 $3 ", |
"Start $0 $1 port $2 $3 $4", |
PEGASUS_NAME, | PEGASUS_NAME, |
PEGASUS_VERSION, | PEGASUS_VERSION, |
address, | address, |