This repository has been archived on 2024-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
2020-01-03 02:59:24 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Minecraft Server
|
|
|
|
Wants=network.target
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=minecraft
|
|
|
|
Group=minecraft
|
|
|
|
Nice=5
|
|
|
|
KillMode=none
|
|
|
|
SuccessExitStatus=0 1
|
|
|
|
ProtectHome=true
|
|
|
|
ProtectSystem=full
|
|
|
|
PrivateDevices=true
|
|
|
|
NoNewPrivileges=true
|
|
|
|
PrivateTmp=true
|
2020-01-03 03:07:51 +00:00
|
|
|
InaccessibleDirectories=/root /sys /mnt/data/ssd
|
2020-01-03 02:59:24 +00:00
|
|
|
ReadWriteDirectories=/srv/minecraft/spigot/server
|
|
|
|
WorkingDirectory=/srv/minecraft/spigot/server
|
|
|
|
ExecStart=/usr/bin/java -Xmx2G -Xms1G -jar spigot.jar --noconsole
|
|
|
|
ExecStop=/srv/minecraft/spigot/bin/warden-shutdown
|
|
|
|
KillMode=control-group
|
|
|
|
RestartSec=5s
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|