fix: systemd service restart

This commit is contained in:
2025-07-13 13:31:48 +08:00
parent be75d12e9c
commit a3b627359b
5 changed files with 11 additions and 22 deletions

View File

@@ -8,7 +8,7 @@
WorkingDirectory = "/opt/minecraft/fabric1.20.6";
ExecStart = "${lib.getExe' pkgs.openjdk21 "java"} -Xms1G -Xmx5G -jar fabric-server-mc.1.20.6-loader.0.15.11-launcher.1.0.1.jar";
Restart = "always";
RestartSec = "10s";
RestartSec = 120;
};
};
my.persist = {