diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-13 20:29:48 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-13 20:29:48 +0200 |
commit | b9303c979d805b9c919deed3de2b7023cce1c7e3 (patch) | |
tree | 953cae48f8ae020f5270beb47458c2caa5cbbbe9 /src/conf_mode/flow_accounting_conf.py | |
parent | 0ef026f32945ca6408026617696b9a96dd000295 (diff) | |
download | vyos-1x-b9303c979d805b9c919deed3de2b7023cce1c7e3.tar.gz vyos-1x-b9303c979d805b9c919deed3de2b7023cce1c7e3.zip |
flow-accounting: T2185: explicitly specify systemd service
Diffstat (limited to 'src/conf_mode/flow_accounting_conf.py')
-rwxr-xr-x | src/conf_mode/flow_accounting_conf.py | 4 |
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') |