diff options
| author | Dan Engelbrecht <[email protected]> | 2025-01-08 14:24:42 +0100 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2025-01-08 14:24:42 +0100 |
| commit | 40c2cbe70ee6868606761d205d1d105c846b170f (patch) | |
| tree | 22f75bd958419303bd8d8178ac5dec12db3cd150 /src/zenutil/service.cpp | |
| parent | use attachconsole to send ctrl+c to running process (diff) | |
| download | zen-40c2cbe70ee6868606761d205d1d105c846b170f.tar.xz zen-40c2cbe70ee6868606761d205d1d105c846b170f.zip | |
mac function signature fix
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 {}; } |