update-script en unit-file toegevoegd

This commit is contained in:
2023-05-24 14:48:29 +02:00
parent 8d358f752f
commit ee3e971346
2 changed files with 49 additions and 0 deletions

12
minecraft.service Normal file
View File

@@ -0,0 +1,12 @@
[Unit]
Description=start and stop the minecraft-server
[Service]
WorkingDirectory=/srv/minecraft
User=minecraft
Group=minecraft
Type=forking
ExecStart=/usr/bin/screen -dmS MinecraftServer /usr/bin/java -Xms1536M -Xmx1536M -jar server.jar --nogui
[Install]
WantedBy=multi-user.target