//-----------------------------------------------------------------------------
SETTINGS::SETTINGS()
: confDir("/etc/stargazer"),
- scriptDir("/etc/stargazer"),
+ scriptsDir("/etc/stargazer"),
pidFile("/var/run/stargazer.pid"),
monitoring(false),
detailStatWritePeriod(dsPeriod_1_6),
//-----------------------------------------------------------------------------
SETTINGS::SETTINGS(const std::string & cd)
: confDir(cd),
- scriptDir(cd),
+ scriptsDir(cd),
monitoring(false),
detailStatWritePeriod(dsPeriod_1_6),
statWritePeriod(10),
//-----------------------------------------------------------------------------
SETTINGS::SETTINGS(const SETTINGS & rval)
: confDir(rval.confDir),
- scriptDir(rval.scriptDir),
+ scriptsDir(rval.scriptsDir),
pidFile(rval.pidFile),
monitoring(rval.monitoring),
detailStatWritePeriod(dsPeriod_1_6),
{
if (strcasecmp(node->getName(), "ScriptDir") == 0)
{
- scriptDir = node->getValue(0);
+ scriptsDir = node->getValue(0);
//printfd(__FILE__, "LogFile: %s\n", logFile.c_str());
}
unsigned GetExecutersNum() const { return executersNum; }
const std::string & GetDirName(int num) const { return dirName[num]; };
const std::string & GetConfDir() const { return confDir; }
- const std::string & GetScriptDir() const { return scriptDir; }
+ const std::string & GetScriptsDir() const { return scriptsDir; }
const std::string & GetRulesFileName() const { return rules; }
const std::string & GetLogFileName() const { return logFile; }
const std::string & GetPIDFileName() const { return pidFile; }
std::string modulesPath;
std::string dirName[DIR_NUM];
std::string confDir;
- std::string scriptDir;
+ std::string scriptsDir;
std::string rules;
std::string logFile;
std::string pidFile;