Polish up Minecraft server unit, reduce restart delay

This commit is contained in:
Salt 2020-03-25 08:29:09 -05:00
parent 43f0c3591c
commit b86c81add2

View File

@ -12,9 +12,7 @@ After=network.target
User=minecraft
Group=mc-admin
WorkingDirectory=/var/minecraft/%i
# Hide other users from unit
PrivateUsers=true
# Read only mapping of /usr /boot and /etc
ProtectSystem=full
ProtectHome=true
# Implies MountFlags=slave
@ -34,7 +32,6 @@ ExecStop=/usr/bin/screen -p 0 -S mc-%i -X eval 'stuff "stop"\\015'
ExecStop=/bin/sleep 10
Restart=on-failure
RestartSec=60s
[Install]
WantedBy=multi-user.target