chore: Improve function name for setting daemon process config

This commit is contained in:
Nick Bolton
2025-03-03 11:01:06 +00:00
parent 5e29fa93ac
commit 4db77ba2f7
2 changed files with 4 additions and 4 deletions

View File

@ -115,7 +115,7 @@ void DaemonApp::applyWatchdogCommand() const
LOG_DEBUG("applying watchdog command");
#if SYSAPI_WIN32
m_watchdog->setCommand(m_command, m_elevate);
m_watchdog->setProcessConfig(m_command, m_elevate);
#else
LOG_ERR("applying watchdog command not implemented on this platform");
#endif
@ -129,7 +129,7 @@ void DaemonApp::clearWatchdogCommand()
setCommand("");
#if SYSAPI_WIN32
m_watchdog->setCommand("", false);
m_watchdog->setProcessConfig("", false);
#else
LOG_ERR("clearing watchdog command not implemented on this platform");
#endif
@ -222,7 +222,7 @@ void DaemonApp::mainLoop()
bool elevate = ARCH->setting("Elevate") == "1";
if (command != "") {
LOG_DEBUG("using last known command: %s", command.c_str());
m_watchdog->setCommand(command, elevate);
m_watchdog->setProcessConfig(command, elevate);
}
m_watchdog->startAsync();

View File

@ -28,7 +28,7 @@ public:
void startAsync();
std::string getCommand() const;
void setCommand(const std::string &command, bool elevate);
void setProcessConfig(const std::string &command, bool elevate);
void stop();
bool isProcessRunning();
void setFileLogOutputter(FileLogOutputter *outputter);