diff options
| -rw-r--r-- | src/zenserver/main.cpp | 4 | ||||
| -rw-r--r-- | src/zenutil/service.cpp | 2 | ||||
| -rw-r--r-- | xmake.lua | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/src/zenserver/main.cpp b/src/zenserver/main.cpp index 636e7f6c1..9ae54bdf1 100644 --- a/src/zenserver/main.cpp +++ b/src/zenserver/main.cpp @@ -34,6 +34,10 @@ # include "windows/service.h" #endif +#if ZEN_PLATFORM_LINUX +# include <systemd/sd-daemon.h> +#endif + ////////////////////////////////////////////////////////////////////////// // We don't have any doctest code in this file but this is needed to bring // in some shared code into the executable diff --git a/src/zenutil/service.cpp b/src/zenutil/service.cpp index c156b001c..ea7c2aae6 100644 --- a/src/zenutil/service.cpp +++ b/src/zenutil/service.cpp @@ -334,7 +334,7 @@ namespace { "StartLimitIntervalSec=0\n" "\n" "[Service]\n" - "Type=simple\n" + "Type=notify\n" "Restart=always\n" "RestartSec=1\n" "User={}\n" @@ -37,6 +37,10 @@ if is_plat("windows") then add_requires("7z") end +if is_plat("linux") then + add_requires("vcpkg::libsystemd") +end + add_requires("vcpkg::mimalloc") if has_config("zensentry") then |