From ac7b43637873f0b4a3d370939343f98e30f95715 Mon Sep 17 00:00:00 2001 From: KamiCreed <9517086+KamiCreed@users.noreply.github.com> Date: Wed, 25 Mar 2020 03:09:52 -0700 Subject: Use tmux and bup for screen and backups, respectively --- minecraft.service | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'minecraft.service') diff --git a/minecraft.service b/minecraft.service index f261625..2565bc8 100644 --- a/minecraft.service +++ b/minecraft.service @@ -5,12 +5,16 @@ Description=Minecraft Server [Service] Type=forking -User=minecraft -Group=minecraft +User=minecraftuser +Group=minecraftuser PIDFile=/var/minecraft/server-screen.pid +Restart=on-failure +RestartSec=30s ExecStart=/var/minecraft/server.sh start TimeoutStopSec= 180 ExecStop=/var/minecraft/server.sh stop +StartLimitInterval=10min +StartLimitBurst=2 [Install] WantedBy=multi-user.target -- cgit v1.2.3