diff options
Diffstat (limited to 'src/conf-mode/vyos-config-mdns-repeater.py')
-rwxr-xr-x | src/conf-mode/vyos-config-mdns-repeater.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/conf-mode/vyos-config-mdns-repeater.py b/src/conf-mode/vyos-config-mdns-repeater.py index 3f9eb1b2b..0d04f7881 100755 --- a/src/conf-mode/vyos-config-mdns-repeater.py +++ b/src/conf-mode/vyos-config-mdns-repeater.py @@ -76,13 +76,15 @@ def generate(mdns): return None def apply(mdns): - systemd_cmd = ["sudo", "service", "mdns-repeater"] + systemd_cmd = ["sudo", "systemctl"] if len(mdns) == 0: systemd_cmd.append("stop") else: systemd_cmd.append("restart") + systemd_cmd.append("mdns-repeater.service") + subprocess.call(systemd_cmd) return None |