mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
avahi: restart on failure.
... but do not try-restart forever
This commit is contained in:
parent
7671ddfe3d
commit
ec6715e24b
@ -2,14 +2,17 @@
|
|||||||
Description=Avahi Daemon
|
Description=Avahi Daemon
|
||||||
After=network.target avahi-defaults.service
|
After=network.target avahi-defaults.service
|
||||||
Requires=avahi-defaults.service
|
Requires=avahi-defaults.service
|
||||||
|
|
||||||
ConditionPathExists=/storage/.cache/services/avahi.conf
|
ConditionPathExists=/storage/.cache/services/avahi.conf
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Restart=on-failure
|
||||||
EnvironmentFile=-/run/openelec/debug/avahi.conf
|
EnvironmentFile=-/run/openelec/debug/avahi.conf
|
||||||
ExecStart=/usr/sbin/avahi-daemon -s $AVAHI_DEBUG
|
ExecStart=/usr/sbin/avahi-daemon -s $AVAHI_DEBUG
|
||||||
ExecReload=/usr/sbin/avahi-daemon -r
|
ExecReload=/usr/sbin/avahi-daemon -r
|
||||||
TimeoutStopSec=1s
|
TimeoutStopSec=1s
|
||||||
|
RestartSec=2
|
||||||
|
StartLimitInterval=60
|
||||||
|
StartLimitBurst=10
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user