summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-11-07 14:03:20 -0600
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-11-07 15:51:13 -0600
commiteb906739047187c322b6ce9efe7c9479bed9a024 (patch)
tree329e9b3e78211e8252fa878cb105480c69f42332 /data/templates
parent45c6b0ccae5c432088ecea627593891a6f9a3943 (diff)
downloadvyos-1x-eb906739047187c322b6ce9efe7c9479bed9a024.tar.gz
vyos-1x-eb906739047187c322b6ce9efe7c9479bed9a024.zip
mdns: T5723: Always reload systemd daemon before applying changes
Additionally, templatize system service override and move it to the runtime path.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/mdns-repeater/override.conf.j27
1 files changed, 7 insertions, 0 deletions
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 }}