version 1.29, 2001/06/25 17:51:59
|
version 1.30, 2001/07/04 14:16:48
|
|
|
{ | { |
static struct OptionRow optionsTable[] = | static struct OptionRow optionsTable[] = |
{ | { |
|
{"home", "/etc/pegasus", false, Option::STRING, 0, 0, "D", |
|
"Sets the pegasus home directory"}, |
{"port", "5988", false, Option::WHOLE_NUMBER, 0, 0, "port", | {"port", "5988", false, Option::WHOLE_NUMBER, 0, 0, "port", |
"specifies port number to listen on" }, | "specifies port number to listen on" }, |
{"trace", "false", false, Option::BOOLEAN, 0, 0, "t", | {"trace", "false", false, Option::BOOLEAN, 0, 0, "t", |
|
|
if (argc == 1 ) | if (argc == 1 ) |
cim_server_service(argc, argv) ; | cim_server_service(argc, argv) ; |
| |
// Get environment variables: |
// Get environment variables |
| |
String pegasusHome; | String pegasusHome; |
| |
|
for (int i=0; i < argc; i++) { |
|
if (!strcmp(argv[i],"-D")) { |
|
i++; |
|
if (i < argc) pegasusHome = argv[i]; |
|
break; |
|
} |
|
} |
|
if (pegasusHome.size() == 0) |
GetEnvironmentVariables(argv[0], pegasusHome); | GetEnvironmentVariables(argv[0], pegasusHome); |
| |
// Get options (from command line and from configuration file); this | // Get options (from command line and from configuration file); this |