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
|
User=minecraft
|
||||||
Group=mc-admin
|
Group=mc-admin
|
||||||
WorkingDirectory=/var/minecraft/%i
|
WorkingDirectory=/var/minecraft/%i
|
||||||
# Hide other users from unit
|
|
||||||
PrivateUsers=true
|
PrivateUsers=true
|
||||||
# Read only mapping of /usr /boot and /etc
|
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
ProtectHome=true
|
ProtectHome=true
|
||||||
# Implies MountFlags=slave
|
# 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
|
ExecStop=/bin/sleep 10
|
||||||
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=60s
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user