diff options
author | KamiCreed <9517086+KamiCreed@users.noreply.github.com> | 2020-03-25 03:09:52 -0700 |
---|---|---|
committer | KamiCreed <9517086+KamiCreed@users.noreply.github.com> | 2020-03-25 03:31:52 -0700 |
commit | ac7b43637873f0b4a3d370939343f98e30f95715 (patch) | |
tree | eae6bef0b750041652e0480e085a3f9ce18b66bc /minecraft.service | |
parent | 8bec29597d873ce025d63c1e4cc8e72f91d878e6 (diff) | |
download | minecraft-server-tools-ac7b43637873f0b4a3d370939343f98e30f95715.tar.gz |
Use tmux and bup for screen and backups, respectively
Diffstat (limited to 'minecraft.service')
-rw-r--r-- | minecraft.service | 8 |
1 files changed, 6 insertions, 2 deletions
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 |