mirror of
https://github.com/owntone/owntone-server.git
synced 2025-07-26 08:50:11 -04:00
[-] 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:
parent
d3fb451960
commit
66154ae014
@ -21,9 +21,12 @@ ExecStart=@sbindir@/forked-daapd -f
|
|||||||
MemoryMax=256M
|
MemoryMax=256M
|
||||||
MemorySwapMax=32M
|
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
|
Restart=on-failure
|
||||||
StartLimitBurst=2
|
RestartSec=5
|
||||||
|
StartLimitBurst=10
|
||||||
StartLimitInterval=600
|
StartLimitInterval=600
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user