version 1.86, 2003/03/11 21:26:54
|
version 1.87, 2003/03/25 23:39:59
|
|
|
int main(int argc, char** argv) | int main(int argc, char** argv) |
{ | { |
String pegasusHome = String::EMPTY; | String pegasusHome = String::EMPTY; |
Boolean pegasusIOLog = false; |
|
String logsDirectory = String::EMPTY; | String logsDirectory = String::EMPTY; |
Boolean useSLP = false; | Boolean useSLP = false; |
Boolean daemonOption = false; | Boolean daemonOption = false; |
|
|
exit(1); | exit(1); |
} | } |
| |
// The "SSL" property overrides the enableHttp*Connection properties and |
Boolean enableHttpConnection = String::equal( |
// enables only the HTTPS connection. |
configManager->getCurrentValue("enableHttpConnection"), "true"); |
Boolean enableHttpConnection = (String::equal( |
Boolean enableHttpsConnection = String::equal( |
configManager->getCurrentValue("enableHttpConnection"), "true") && |
configManager->getCurrentValue("enableHttpsConnection"), "true"); |
!String::equal(configManager->getCurrentValue("SSL"), "true")); |
|
Boolean enableHttpsConnection = (String::equal( |
|
configManager->getCurrentValue("enableHttpsConnection"), "true") || |
|
String::equal(configManager->getCurrentValue("SSL"), "true")); |
|
| |
// Make sure at least one connection is enabled | // Make sure at least one connection is enabled |
#ifndef PEGASUS_LOCAL_DOMAIN_SOCKET | #ifndef PEGASUS_LOCAL_DOMAIN_SOCKET |
|
|
daemonOption = true; | daemonOption = true; |
} | } |
| |
// |
|
// Check the log trace options and set global variable |
|
// |
|
|
|
if (String::equal(configManager->getCurrentValue("logtrace"), "true")) |
|
{ |
|
pegasusIOLog = true; |
|
} |
|
|
|
// Get the log file directory definition. | // Get the log file directory definition. |
// We put String into Cstring because | // We put String into Cstring because |
// Directory functions only handle Cstring. | // Directory functions only handle Cstring. |
|
|
cout << "Logs Directory = " << logsDirectory << endl; | cout << "Logs Directory = " << logsDirectory << endl; |
#endif | #endif |
| |
if (String::equal(configManager->getCurrentValue("cleanlogs"), "true")) |
|
{ |
|
Logger::clean(logsDirectory);; |
|
} |
|
|
|
if (String::equal(configManager->getCurrentValue("slp"), "true")) | if (String::equal(configManager->getCurrentValue("slp"), "true")) |
{ | { |
useSLP = true; | useSLP = true; |
|
|
cout << PEGASUS_NAME << PEGASUS_VERSION << endl; | cout << PEGASUS_NAME << PEGASUS_VERSION << endl; |
cout << "Built " << __DATE__ << " " << __TIME__ << endl; | cout << "Built " << __DATE__ << " " << __TIME__ << endl; |
cout <<"Starting..." | cout <<"Starting..." |
<< (pegasusIOLog ? " Tracing to Log ": " ") |
|
<< (useSLP ? " SLP reg. " : " No SLP ") | << (useSLP ? " SLP reg. " : " No SLP ") |
<< endl; | << endl; |
#endif | #endif |