# define ICINGA_VERSION GIT_MESSAGE
#endif /* _WIN32 */
-const String IcingaApplication::DefaultPidPath = "icinga2.pid";
-const String IcingaApplication::DefaultStatePath = "icinga2.state";
-
IcingaApplication::IcingaApplication(const Dictionary::Ptr& serializedUpdate)
: Application(serializedUpdate)
{
Value pidPath = Get("pid_path");
if (pidPath.IsEmpty())
- pidPath = DefaultPidPath;
+ pidPath = Application::GetLocalStateDir() + "/run/icinga2.pid";
return pidPath;
}
Value statePath = Get("state_path");
if (statePath.IsEmpty())
- statePath = DefaultStatePath;
+ statePath = Application::GetLocalStateDir() + "/lib/icinga2.state";
return statePath;
}
double GetStartTime(void) const;
- static const String DefaultPidPath;
- static const String DefaultStatePath;
-
private:
shared_ptr<SSL_CTX> m_SSLContext;