- Service-File starts spigot.jar - setup.sh works with String Operations and only tries to download latest Plugins
19 lines
434 B
Desktop File
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
|