mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-16 14:47:00 +05:30
systemd: automatically restart minecraft every 3 days
This commit is contained in:
parent
954a89b610
commit
7eaa43cdd8
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,8 @@ Description=Private Minecraft server
|
|||
After=network.target
|
||||
|
||||
[Service]
|
||||
Restart=on-abort
|
||||
Restart=always
|
||||
RuntimeMaxSec=3d
|
||||
Type=simple
|
||||
User=minecraft
|
||||
WorkingDirectory=/opt/minecraft/server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue