version 1.2, 2007/05/25 18:35:07
|
version 1.3, 2007/09/25 17:57:41
|
|
|
const char* name, | const char* name, |
char value[EXECUTOR_BUFFER_SIZE]) | char value[EXECUTOR_BUFFER_SIZE]) |
{ | { |
|
const char* configFileName = 0; |
char path[EXECUTOR_BUFFER_SIZE]; | char path[EXECUTOR_BUFFER_SIZE]; |
size_t i; | size_t i; |
| |
|
|
if (GetConfigParamFromCommandLine(name, value) == 0) | if (GetConfigParamFromCommandLine(name, value) == 0) |
return 0; | return 0; |
| |
/* (2) Next check planned config file. */ |
/* (2) Next check config file. */ |
| |
if (GetHomedPath(PEGASUS_PLANNED_CONFIG_FILE_PATH, path) == 0 && |
if (strcmp(name, "shutdownTimeout") == 0) |
|
{ |
|
configFileName = PEGASUS_CURRENT_CONFIG_FILE_PATH; |
|
} |
|
else |
|
{ |
|
configFileName = PEGASUS_PLANNED_CONFIG_FILE_PATH; |
|
} |
|
|
|
if (GetHomedPath(configFileName, path) == 0 && |
GetConfigParamFromFile(path, name, value) == 0) | GetConfigParamFromFile(path, name, value) == 0) |
return 0; | return 0; |
| |