chore: Improve function name for setting daemon process config
This commit is contained in:
parent
5e29fa93ac
commit
4db77ba2f7
2 changed files with 4 additions and 4 deletions
|
|
@ -115,7 +115,7 @@ void DaemonApp::applyWatchdogCommand() const
|
||||||
LOG_DEBUG("applying watchdog command");
|
LOG_DEBUG("applying watchdog command");
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if SYSAPI_WIN32
|
||||||
m_watchdog->setCommand(m_command, m_elevate);
|
m_watchdog->setProcessConfig(m_command, m_elevate);
|
||||||
#else
|
#else
|
||||||
LOG_ERR("applying watchdog command not implemented on this platform");
|
LOG_ERR("applying watchdog command not implemented on this platform");
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -129,7 +129,7 @@ void DaemonApp::clearWatchdogCommand()
|
||||||
setCommand("");
|
setCommand("");
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if SYSAPI_WIN32
|
||||||
m_watchdog->setCommand("", false);
|
m_watchdog->setProcessConfig("", false);
|
||||||
#else
|
#else
|
||||||
LOG_ERR("clearing watchdog command not implemented on this platform");
|
LOG_ERR("clearing watchdog command not implemented on this platform");
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -222,7 +222,7 @@ void DaemonApp::mainLoop()
|
||||||
bool elevate = ARCH->setting("Elevate") == "1";
|
bool elevate = ARCH->setting("Elevate") == "1";
|
||||||
if (command != "") {
|
if (command != "") {
|
||||||
LOG_DEBUG("using last known command: %s", command.c_str());
|
LOG_DEBUG("using last known command: %s", command.c_str());
|
||||||
m_watchdog->setCommand(command, elevate);
|
m_watchdog->setProcessConfig(command, elevate);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_watchdog->startAsync();
|
m_watchdog->startAsync();
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ public:
|
||||||
|
|
||||||
void startAsync();
|
void startAsync();
|
||||||
std::string getCommand() const;
|
std::string getCommand() const;
|
||||||
void setCommand(const std::string &command, bool elevate);
|
void setProcessConfig(const std::string &command, bool elevate);
|
||||||
void stop();
|
void stop();
|
||||||
bool isProcessRunning();
|
bool isProcessRunning();
|
||||||
void setFileLogOutputter(FileLogOutputter *outputter);
|
void setFileLogOutputter(FileLogOutputter *outputter);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue