From 25f1afc5cf50e5274486fa3b729f69e6faeb62d4 Mon Sep 17 00:00:00 2001
From: Christian Poessinger <christian@poessinger.com>
Date: Mon, 13 Apr 2020 20:56:29 +0200
Subject: broadcast-relay: T2185: explicitly specify systemd service

---
 src/conf_mode/bcast_relay.py | 4 ++--
 1 file 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
 
-- 
cgit v1.2.3