diff options
Diffstat (limited to 'src/zenutil/service.cpp')
| -rw-r--r-- | src/zenutil/service.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/zenutil/service.cpp b/src/zenutil/service.cpp index 3d7808bba..0bacc03f5 100644 --- a/src/zenutil/service.cpp +++ b/src/zenutil/service.cpp @@ -951,16 +951,15 @@ InstallService(std::string_view ServiceName, const ServiceSpec& Spec) } std::error_code -UninstallService(std::string_view ServiceName) +UninstallService(std::string_view ServiceName, ServiceLevel Level) { - ZEN_UNUSED(ServiceName); + ZEN_UNUSED(Level); std::filesystem::path ServicePath = std::filesystem::path("/usr/local/libexec") / ServiceName; ZEN_INFO("Attempting to remove service from {}", ServicePath.string()); if (unlink(ServicePath.string().c_str()) == -1) { return MakeErrorCodeFromLastError(); - ; } std::string DaemonName = fmt::format("com.epicgames.unreal.{}", ServiceName); std::filesystem::path PListPath = std::filesystem::path("/Library/LaunchDaemons") / (DaemonName + ".plist"); @@ -968,7 +967,6 @@ UninstallService(std::string_view ServiceName) if (unlink(ServicePath.string().c_str()) == -1) { return MakeErrorCodeFromLastError(); - ; } return {}; @@ -983,17 +981,17 @@ QueryInstalledService(std::string_view ServiceName, ServiceInfo& OutInfo) } std::error_code -StartService(std::string_view ServiceName) +StartService(std::string_view ServiceName, ServiceLevel Level) { - ZEN_UNUSED(ServiceName); + ZEN_UNUSED(ServiceName, Level); ZEN_NOT_IMPLEMENTED("StartService"); return {}; } std::error_code -StopService(std::string_view ServiceName) +StopService(std::string_view ServiceName, ServiceLevel Level) { - ZEN_UNUSED(ServiceName); + ZEN_UNUSED(ServiceName, Level); ZEN_NOT_IMPLEMENTED("StopService"); return {}; } |