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