Some checks failed
Run ansible / run-ansible-playbook (push) Failing after 55s
26 lines
495 B
Desktop File
26 lines
495 B
Desktop File
|
|
[Unit]
|
|
Description=Minecraft Server
|
|
Wants=network.target
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=minecraft
|
|
Group=minecraft
|
|
UMask=0027
|
|
|
|
Nice=1
|
|
KillMode=none
|
|
SuccessExitStatus=0 1 255
|
|
|
|
NoNewPrivileges=true
|
|
PrivateDevices=true
|
|
ProtectHome=true
|
|
ProtectSystem=full
|
|
|
|
WorkingDirectory=/opt/minecraft/server
|
|
ExecStart=/usr/bin/java -Xmx2048M -Xms2048M -jar spigot-1.21.8.jar nogui
|
|
ExecStop=/opt/minecraft/tools/mcrcon/mcrcon -H 127.0.0.1 -P 25575 -p ${]Password} stop
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |