diff --git a/roles/minecraft/templates/minecraft@.service b/roles/minecraft/templates/minecraft@.service index 243f4ca..4b1e221 100644 --- a/roles/minecraft/templates/minecraft@.service +++ b/roles/minecraft/templates/minecraft@.service @@ -32,6 +32,8 @@ ExecStop=/usr/bin/screen -p 0 -S %i -X eval 'stuff "stop"\\015' ExecStop=/bin/sleep 5 Restart=always +# Restart after 24hrs +RuntimeMaxSecs=86400 [Install] WantedBy=multi-user.target