summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-13 20:56:29 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-13 20:56:29 +0200
commit25f1afc5cf50e5274486fa3b729f69e6faeb62d4 (patch)
treefb364dff498e267f3df7d627826c30d9a8dcb350 /src
parent19fcc6f6d974255e7a46a65af3761456848aa5c8 (diff)
downloadvyos-1x-25f1afc5cf50e5274486fa3b729f69e6faeb62d4.tar.gz
vyos-1x-25f1afc5cf50e5274486fa3b729f69e6faeb62d4.zip
broadcast-relay: T2185: explicitly specify systemd service
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/bcast_relay.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/bcast_relay.py b/src/conf_mode/bcast_relay.py
index 0069218f6..a3bc76ef8 100755
--- a/src/conf_mode/bcast_relay.py
+++ b/src/conf_mode/bcast_relay.py
@@ -146,7 +146,7 @@ def generate(relay):
def apply(relay):
# first stop all running services
- call('sudo systemctl stop udp-broadcast-relay@{1..99}')
+ call('systemctl stop udp-broadcast-relay@{1..99}.service')
if (relay is None) or relay['disabled']:
return None
@@ -156,7 +156,7 @@ def apply(relay):
# Don't start individual instance when it's disabled
if r['disabled']:
continue
- call('sudo systemctl start udp-broadcast-relay@{0}'.format(r['id']))
+ call('systemctl start udp-broadcast-relay@{0}.service'.format(r['id']))
return None