summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-13 20:29:48 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-13 20:29:48 +0200
commitb9303c979d805b9c919deed3de2b7023cce1c7e3 (patch)
tree953cae48f8ae020f5270beb47458c2caa5cbbbe9 /src/conf_mode
parent0ef026f32945ca6408026617696b9a96dd000295 (diff)
downloadvyos-1x-b9303c979d805b9c919deed3de2b7023cce1c7e3.tar.gz
vyos-1x-b9303c979d805b9c919deed3de2b7023cce1c7e3.zip
flow-accounting: T2185: explicitly specify systemd service
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/flow_accounting_conf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/flow_accounting_conf.py b/src/conf_mode/flow_accounting_conf.py
index 3320075fb..1354488ac 100755
--- a/src/conf_mode/flow_accounting_conf.py
+++ b/src/conf_mode/flow_accounting_conf.py
@@ -346,9 +346,9 @@ def apply(config):
command = None
# Check if flow-accounting was removed and define command
if not config['flow-accounting-configured']:
- command = '/usr/bin/sudo /bin/systemctl stop uacctd'
+ command = 'systemctl stop uacctd.service'
else:
- command = '/usr/bin/sudo /bin/systemctl restart uacctd'
+ command = 'systemctl restart uacctd.service'
# run command to start or stop flow-accounting
cmd(command, raising=ConfigError, message='Failed to start/stop flow-accounting')