From dd5663bfd5f46fda547e72a35785b528aeaf073f Mon Sep 17 00:00:00 2001 From: chaos Date: Thu, 8 Aug 2024 18:40:52 +0100 Subject: [PATCH] remove duplicate socket --- hosts/hetzner-arm/containers/minecraft/minecraft.nix | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/hosts/hetzner-arm/containers/minecraft/minecraft.nix b/hosts/hetzner-arm/containers/minecraft/minecraft.nix index b42edc6..ef880dd 100644 --- a/hosts/hetzner-arm/containers/minecraft/minecraft.nix +++ b/hosts/hetzner-arm/containers/minecraft/minecraft.nix @@ -50,18 +50,6 @@ in { }; }; - systemd.sockets.minecraft-server = { - bindsTo = ["minecraft-server.service"]; - socketConfig = { - ListenFIFO = "/run/minecraft-server.stdin"; - SocketMode = "0660"; - SocketUser = "minecraft"; - SocketGroup = "minecraft"; - RemoveOnStop = true; - FlushPending = true; - }; - }; - systemd.services.minecraft-server = let stopScript = pkgs.writeShellScript "minecraft-server-stop" '' echo stop > /run/minecraft-server.stdin