# minecraft.service [Unit] Description=Minecraft Server [Service] 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 [Install] WantedBy=multi-user.target