Polish up Minecraft server unit, reduce restart delay
This commit is contained in:
parent
43f0c3591c
commit
b86c81add2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user