summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2017-12-09 13:49:05 +0100
committerChristian Poessinger <christian@poessinger.com>2017-12-09 13:49:07 +0100
commitc937d19b263070f380fcbc75dfe60d15840fe477 (patch)
tree883576f664f212be1d1535e3078b657decbfb0f6
parentae1e4c704bb324831fb15b6e243710f94700d3f2 (diff)
downloadvyos-1x-c937d19b263070f380fcbc75dfe60d15840fe477.tar.gz
vyos-1x-c937d19b263070f380fcbc75dfe60d15840fe477.zip
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.
-rwxr-xr-xsrc/conf-mode/vyos-config-mdns-repeater.py4
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