aboutsummaryrefslogtreecommitdiff
path: root/minecraft.service
diff options
context:
space:
mode:
Diffstat (limited to 'minecraft.service')
-rw-r--r--minecraft.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/minecraft.service b/minecraft.service
index f261625..428c9af 100644
--- a/minecraft.service
+++ b/minecraft.service
@@ -8,6 +8,8 @@ Type=forking
User=minecraft
Group=minecraft
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