mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 15:37:49 +00:00
avahi: update systemd services to reflekt our new settings addon format
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
cdc0cdc772
commit
949fb474fb
@ -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
|
||||
}
|
||||
|
14
packages/network/avahi/system.d/avahi-daemon.service
Normal file
14
packages/network/avahi/system.d/avahi-daemon.service
Normal 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
|
9
packages/network/avahi/system.d/avahi-monitor.path
Normal file
9
packages/network/avahi/system.d/avahi-monitor.path
Normal 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
|
10
packages/network/avahi/system.d/avahi-monitor.service
Normal file
10
packages/network/avahi/system.d/avahi-monitor.service
Normal 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
|
Loading…
x
Reference in New Issue
Block a user