avahi: restart on failure.

... but do not try-restart forever
This commit is contained in:
Stefan Saraev 2015-04-21 01:07:02 +03:00
parent 7671ddfe3d
commit ec6715e24b

View File

@ -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