aboutsummaryrefslogtreecommitdiff
path: root/minecraft.service
diff options
context:
space:
mode:
Diffstat (limited to 'minecraft.service')
-rw-r--r--minecraft.service8
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