mirror of https://github.com/Icinga/icinga2.git
parent
dd4a7ab240
commit
03a509f419
|
@ -889,6 +889,7 @@ String Application::GetPrefixDir(void)
|
|||
*/
|
||||
void Application::DeclarePrefixDir(const String& path)
|
||||
{
|
||||
if (!ScriptGlobal::Exists("PrefixDir"))
|
||||
ScriptGlobal::Set("PrefixDir", path);
|
||||
}
|
||||
|
||||
|
@ -909,6 +910,7 @@ String Application::GetSysconfDir(void)
|
|||
*/
|
||||
void Application::DeclareSysconfDir(const String& path)
|
||||
{
|
||||
if (!ScriptGlobal::Exists("SysconfDir"))
|
||||
ScriptGlobal::Set("SysconfDir", path);
|
||||
}
|
||||
|
||||
|
@ -929,6 +931,7 @@ String Application::GetRunDir(void)
|
|||
*/
|
||||
void Application::DeclareRunDir(const String& path)
|
||||
{
|
||||
if (!ScriptGlobal::Exists("RunDir"))
|
||||
ScriptGlobal::Set("RunDir", path);
|
||||
}
|
||||
|
||||
|
@ -949,6 +952,7 @@ String Application::GetLocalStateDir(void)
|
|||
*/
|
||||
void Application::DeclareLocalStateDir(const String& path)
|
||||
{
|
||||
if (!ScriptGlobal::Exists("LocalStateDir"))
|
||||
ScriptGlobal::Set("LocalStateDir", path);
|
||||
}
|
||||
|
||||
|
@ -969,6 +973,7 @@ String Application::GetZonesDir(void)
|
|||
*/
|
||||
void Application::DeclareZonesDir(const String& path)
|
||||
{
|
||||
if (!ScriptGlobal::Exists("ZonesDir"))
|
||||
ScriptGlobal::Set("ZonesDir", path);
|
||||
}
|
||||
|
||||
|
@ -990,6 +995,7 @@ String Application::GetPkgDataDir(void)
|
|||
*/
|
||||
void Application::DeclarePkgDataDir(const String& path)
|
||||
{
|
||||
if (!ScriptGlobal::Exists("PkgDataDir"))
|
||||
ScriptGlobal::Set("PkgDataDir", path);
|
||||
}
|
||||
|
||||
|
@ -1010,6 +1016,7 @@ String Application::GetIncludeConfDir(void)
|
|||
*/
|
||||
void Application::DeclareIncludeConfDir(const String& path)
|
||||
{
|
||||
if (!ScriptGlobal::Exists("IncludeConfDir"))
|
||||
ScriptGlobal::Set("IncludeConfDir", path);
|
||||
}
|
||||
|
||||
|
@ -1030,6 +1037,7 @@ String Application::GetStatePath(void)
|
|||
*/
|
||||
void Application::DeclareStatePath(const String& path)
|
||||
{
|
||||
if (!ScriptGlobal::Exists("StatePath"))
|
||||
ScriptGlobal::Set("StatePath", path);
|
||||
}
|
||||
|
||||
|
@ -1050,6 +1058,7 @@ String Application::GetObjectsPath(void)
|
|||
*/
|
||||
void Application::DeclareObjectsPath(const String& path)
|
||||
{
|
||||
if (!ScriptGlobal::Exists("ObjectsPath"))
|
||||
ScriptGlobal::Set("ObjectsPath", path);
|
||||
}
|
||||
|
||||
|
@ -1070,6 +1079,7 @@ String Application::GetVarsPath(void)
|
|||
*/
|
||||
void Application::DeclareVarsPath(const String& path)
|
||||
{
|
||||
if (!ScriptGlobal::Exists("VarsPath"))
|
||||
ScriptGlobal::Set("VarsPath", path);
|
||||
}
|
||||
|
||||
|
@ -1090,6 +1100,7 @@ String Application::GetPidPath(void)
|
|||
*/
|
||||
void Application::DeclarePidPath(const String& path)
|
||||
{
|
||||
if (!ScriptGlobal::Exists("PidPath"))
|
||||
ScriptGlobal::Set("PidPath", path);
|
||||
}
|
||||
|
||||
|
@ -1110,6 +1121,7 @@ String Application::GetApplicationType(void)
|
|||
*/
|
||||
void Application::DeclareApplicationType(const String& type)
|
||||
{
|
||||
if (!ScriptGlobal::Exists("ApplicationType"))
|
||||
ScriptGlobal::Set("ApplicationType", type);
|
||||
}
|
||||
|
||||
|
@ -1130,6 +1142,7 @@ String Application::GetRunAsUser(void)
|
|||
*/
|
||||
void Application::DeclareRunAsUser(const String& user)
|
||||
{
|
||||
if (!ScriptGlobal::Exists("RunAsUser"))
|
||||
ScriptGlobal::Set("RunAsUser", user);
|
||||
}
|
||||
|
||||
|
@ -1150,6 +1163,7 @@ String Application::GetRunAsGroup(void)
|
|||
*/
|
||||
void Application::DeclareConcurrency(int ncpus)
|
||||
{
|
||||
if (!ScriptGlobal::Exists("Concurrency"))
|
||||
ScriptGlobal::Set("Concurrency", ncpus);
|
||||
}
|
||||
|
||||
|
@ -1171,6 +1185,7 @@ int Application::GetConcurrency(void)
|
|||
*/
|
||||
void Application::DeclareRunAsGroup(const String& group)
|
||||
{
|
||||
if (!ScriptGlobal::Exists("RunAsGroup"))
|
||||
ScriptGlobal::Set("RunAsGroup", group);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue