version 1.34.2.1, 2001/07/31 23:54:39
|
version 1.34.2.2, 2001/08/01 03:40:08
|
|
|
| |
// Get environment variables | // Get environment variables |
| |
|
if (pegasusHome.size() == 0) |
for (int i=0; i < argc; i++) { | for (int i=0; i < argc; i++) { |
if (!strcmp(argv[i],"-D")) { | if (!strcmp(argv[i],"-D")) { |
i++; | i++; |
|
|
// Check to see if we should (can) install as a NT service | // Check to see if we should (can) install as a NT service |
// | // |
| |
if (String::equal(configManager->getCurrentValue("install"), "true")) |
if (configManager->isInstallFlagSet()) |
{ | { |
if( 0 != cimserver_install_nt_service( pegasusHome )) | if( 0 != cimserver_install_nt_service( pegasusHome )) |
{ | { |
|
|
// Check to see if we should (can) remove Pegasus as an NT service | // Check to see if we should (can) remove Pegasus as an NT service |
// | // |
| |
if (String::equal(configManager->getCurrentValue("remove"), "true")) |
if (configManager->isRemoveFlagSet()) |
{ | { |
if( 0 != cimserver_remove_nt_service() ) | if( 0 != cimserver_remove_nt_service() ) |
{ | { |
|
|
// Check to see if we should Pegasus as a daemon | // Check to see if we should Pegasus as a daemon |
// | // |
| |
if (String::equal(configManager->getCurrentValue("daemon"), "true")) |
if (configManager->isDaemonFlagSet()) |
{ | { |
daemonOption = true; | daemonOption = true; |
} | } |
|
|
// ATTN: Need tool to completely disable logging. | // ATTN: Need tool to completely disable logging. |
Logger::setHomeDirectory(logsDirectory); | Logger::setHomeDirectory(logsDirectory); |
| |
if (String::equal(configManager->getCurrentValue("cleanlogs"), "true")) |
if (configManager->isCleanLogsFlagSet()) |
{ | { |
Logger::clean(logsDirectory);; | Logger::clean(logsDirectory);; |
} | } |
|
|
// 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; |
| |
if (String::equal(configManager->getCurrentValue("slp"), "true")) |
if (configManager->isSlpFlagSet()) |
{ | { |
useSLP = true; | useSLP = true; |
} | } |