From 1e1364f39a2474d2d58858c92ad0ecf0a6b696e1 Mon Sep 17 00:00:00 2001 From: juliangiebel Date: Sat, 1 Jun 2024 19:20:39 +0200 Subject: [PATCH] Add systemd integration --- SS14.MapServer/Program.cs | 2 ++ SS14.MapServer/SS14.MapServer.csproj | 1 + 2 files changed, 3 insertions(+) diff --git a/SS14.MapServer/Program.cs b/SS14.MapServer/Program.cs index aa06237..e237e09 100644 --- a/SS14.MapServer/Program.cs +++ b/SS14.MapServer/Program.cs @@ -128,6 +128,8 @@ builder.Host.UseSerilog((ctx, cfg) => cfg.ReadFrom.Configuration(ctx.Configuration)); builder.Logging.AddSerilog(); +builder.Host.UseSystemd(); + if (serverConfiguration.EnableSentry) builder.WebHost.UseSentry(); diff --git a/SS14.MapServer/SS14.MapServer.csproj b/SS14.MapServer/SS14.MapServer.csproj index 419375f..0cf0b47 100644 --- a/SS14.MapServer/SS14.MapServer.csproj +++ b/SS14.MapServer/SS14.MapServer.csproj @@ -19,6 +19,7 @@ +