systemd: add larger timeout for server restarts

This commit is contained in:
Harsh Shandilya 2023-07-15 19:31:19 +05:30
parent 7337968840
commit 06f2e5f0f0
No known key found for this signature in database
1 changed files with 2 additions and 3 deletions

View File

@ -3,8 +3,7 @@ Description=Private Minecraft server
After=network.target
[Service]
Restart=always
RuntimeMaxSec=3d
Restart=on-success
Type=simple
User=minecraft
WorkingDirectory=/opt/minecraft/server
@ -13,7 +12,7 @@ ExecStart=/usr/bin/env bash start.sh
ExecStop=/usr/bin/env bash stop.sh
KillMode=mixed
KillSignal=SIGQUIT
TimeoutStopSec=10s
TimeoutStopSec=60s
# Security
PrivateTmp=true