From c937d19b263070f380fcbc75dfe60d15840fe477 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 9 Dec 2017 13:49:05 +0100 Subject: Drop call to 'service' wrapper in 'vyos-config-mdns-repeater.py' Using 'service' as wrapper to start system services is no longer necessary, hence use the full systemd command. --- src/conf-mode/vyos-config-mdns-repeater.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3