This repository has been archived on 2023-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
minecraft-server-tools/minecraft.service
kB01guy 12ad200f2b - Updated Readme
- Service-File starts spigot.jar
- setup.sh works with String Operations and only tries to download 
latest Plugins
2021-06-24 15:08:40 +02:00

19 lines
434 B
Desktop File

[Unit]
Description=Minecraft Server
After=network.target
[Service]
User=minecraft
Nice=1
KillMode=none
SuccessExitStatus=0 1
ProtectHome=true
ProtectSystem=full
PrivateDevices=true
NoNewPrivileges=true
WorkingDirectory=/opt/minecraft/server
ExecStart=/usr/bin/java -Xmx768M -Xms512M -jar spigot.jar nogui
ExecStop=/opt/minecraft/tools/mcrcon/mcrcon -H 127.0.0.1 -P 25575 -p strong-password stop
[Install]
WantedBy=multi-user.target