summaryrefslogtreecommitdiff
path: root/data/templates/mdns-repeater
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/mdns-repeater')
-rw-r--r--data/templates/mdns-repeater/avahi-daemon.conf.j22
-rw-r--r--data/templates/mdns-repeater/override.conf.j27
2 files changed, 8 insertions, 1 deletions
diff --git a/data/templates/mdns-repeater/avahi-daemon.conf.j2 b/data/templates/mdns-repeater/avahi-daemon.conf.j2
index d562c048f..cc6495817 100644
--- a/data/templates/mdns-repeater/avahi-daemon.conf.j2
+++ b/data/templates/mdns-repeater/avahi-daemon.conf.j2
@@ -1,4 +1,4 @@
-### Autogenerated by service_mdns-repeater.py ###
+### Autogenerated by service_mdns_repeater.py ###
[server]
use-ipv4={{ 'yes' if ip_version in ['ipv4', 'both'] else 'no' }}
use-ipv6={{ 'yes' if ip_version in ['ipv6', 'both'] else 'no' }}
diff --git a/data/templates/mdns-repeater/override.conf.j2 b/data/templates/mdns-repeater/override.conf.j2
new file mode 100644
index 000000000..8c8187489
--- /dev/null
+++ b/data/templates/mdns-repeater/override.conf.j2
@@ -0,0 +1,7 @@
+[Unit]
+After=vyos-router.service
+ConditionPathExists={{ config_file }}
+
+[Service]
+ExecStart=
+ExecStart=/usr/sbin/avahi-daemon --syslog --file {{ config_file }}