[-] Change restart limits in SystemD service file (closes #968)

Allow for more manual restarting, but still have a limit to protect against
infinite restart.
This commit is contained in:
ejurgensen 2020-04-28 21:47:02 +02:00
parent d3fb451960
commit 66154ae014
1 changed files with 5 additions and 2 deletions

View File

@ -21,9 +21,12 @@ ExecStart=@sbindir@/forked-daapd -f
MemoryMax=256M
MemorySwapMax=32M
# Restart, but not more than once every 10 minutes
# Restart, but set a limit so we don't restart indefinitely. Unfortunately,
# systemd also applies the start limits to manual restarts, so that's why the
# burst value allows for 10 restarts.
Restart=on-failure
StartLimitBurst=2
RestartSec=5
StartLimitBurst=10
StartLimitInterval=600
[Install]