summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-13 20:47:15 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-13 20:47:15 +0200
commit19fcc6f6d974255e7a46a65af3761456848aa5c8 (patch)
tree9f8af95479c22e27119e051ae56a35b4376e70c1 /src
parente3d710258b1f3aef71b3dbdfd265c6bf5805517e (diff)
downloadvyos-1x-19fcc6f6d974255e7a46a65af3761456848aa5c8.tar.gz
vyos-1x-19fcc6f6d974255e7a46a65af3761456848aa5c8.zip
mdns-repeater: T2185: explicitly specify systemd service
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/mdns_repeater.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/conf_mode/mdns_repeater.py b/src/conf_mode/mdns_repeater.py
index bca1a537e..a652553f7 100755
--- a/src/conf_mode/mdns_repeater.py
+++ b/src/conf_mode/mdns_repeater.py
@@ -25,7 +25,6 @@ from vyos import ConfigError
from vyos.util import call
from vyos.template import render
-
config_file = r'/etc/default/mdns-repeater'
default_config_data = {
@@ -86,11 +85,11 @@ def generate(mdns):
def apply(mdns):
if (mdns is None) or mdns['disabled']:
- call('sudo systemctl stop mdns-repeater')
+ call('systemctl stop mdns-repeater.service')
if os.path.exists(config_file):
os.unlink(config_file)
else:
- call('sudo systemctl restart mdns-repeater')
+ call('systemctl restart mdns-repeater.service')
return None