avahi: update systemd services to reflekt our new settings addon format

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-09 23:02:41 +02:00
parent cdc0cdc772
commit 949fb474fb
4 changed files with 34 additions and 1 deletions

View File

@ -115,5 +115,5 @@ post_install() {
add_group avahiautoipd 496
enable_service avahi-daemon.service
enable_service avahi-daemon.socket
enable_service avahi-monitor.path
}

View File

@ -0,0 +1,14 @@
[Unit]
Description=Avahi Daemon
After=syslog.target debug.service network.target
ConditionPathExists=/storage/.cache/services/avahi.conf
[Service]
# EnvironmentFile=/storage/.cache/services/avahi.conf
EnvironmentFile=-/run/openelec/debug.conf
ExecStart=/usr/sbin/avahi-daemon -s $AVAHI_DEBUG
ExecReload=/usr/sbin/avahi-daemon -r
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,9 @@
[Unit]
Description=Avahi configfile monitor
[Path]
PathModified=/storage/.cache/services/avahi.conf
PathModified=/run/openelec/debug.conf
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=Avahi configfile monitor
After=network.target
[Service]
Type=oneshot
ExecStart=/bin/systemctl restart avahi-daemon.service
[Install]
WantedBy=multi-user.target