remove duplicate socket
This commit is contained in:
parent
aca8be0cbb
commit
dd5663bfd5
|
@ -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
|
systemd.services.minecraft-server = let
|
||||||
stopScript = pkgs.writeShellScript "minecraft-server-stop" ''
|
stopScript = pkgs.writeShellScript "minecraft-server-stop" ''
|
||||||
echo stop > /run/minecraft-server.stdin
|
echo stop > /run/minecraft-server.stdin
|
||||||
|
|
Loading…
Reference in a new issue