diff --git a/Util/include/Poco/Util/WinService.h b/Util/include/Poco/Util/WinService.h index 4d29cc4d3..1b44cd5a2 100644 --- a/Util/include/Poco/Util/WinService.h +++ b/Util/include/Poco/Util/WinService.h @@ -139,6 +139,8 @@ public: void setFailureActions(FailureActionVector failureActions, const std::string& command = "", const std::string& rebootMessage = ""); /// Sets the Failure Actions for the service. + /// If one of the Actions is SVC_RUN_COMMAND the command Parameter is added. + /// If one of the Actions is SVC_REBOOT the Reboot Message is set. FailureActionTypeVector getFailureActions() const; /// Returns the Failure Actions for the service. diff --git a/Util/testsuite/src/WinServiceTest.cpp b/Util/testsuite/src/WinServiceTest.cpp index c27194ab9..f2af69444 100644 --- a/Util/testsuite/src/WinServiceTest.cpp +++ b/Util/testsuite/src/WinServiceTest.cpp @@ -30,7 +30,7 @@ void WinServiceTest::testServiceReturnsTrueIfStopped() { } void WinServiceTest::testServiceReturnsFailureActionConfigured() { - auto failureActions = spoolerService_.getFailureAction(); + auto failureActions = spoolerService_.getFailureActions(); assertEqual(3, failureActions.size()); assertEqual(WinService::SVC_RESTART, failureActions[0]);