summaryrefslogtreecommitdiff
path: root/src/op_mode/flow_accounting_op.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-13 20:38:15 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-13 20:38:15 +0200
commite3d710258b1f3aef71b3dbdfd265c6bf5805517e (patch)
treefb4bdb7082274d0f7b3d74609573953204b83d26 /src/op_mode/flow_accounting_op.py
parentf7334d102315eb56f3526ac464fa77cbc0457859 (diff)
downloadvyos-1x-e3d710258b1f3aef71b3dbdfd265c6bf5805517e.tar.gz
vyos-1x-e3d710258b1f3aef71b3dbdfd265c6bf5805517e.zip
op-mode: T2185: adjust flow-accounting systemd service name
Diffstat (limited to 'src/op_mode/flow_accounting_op.py')
-rwxr-xr-xsrc/op_mode/flow_accounting_op.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/op_mode/flow_accounting_op.py b/src/op_mode/flow_accounting_op.py
index 71fdfc288..bf8c39fd6 100755
--- a/src/op_mode/flow_accounting_op.py
+++ b/src/op_mode/flow_accounting_op.py
@@ -70,7 +70,7 @@ def _is_host(host):
# check if flow-accounting running
def _uacctd_running():
- command = '/usr/bin/sudo /bin/systemctl status uacctd > /dev/null'
+ command = 'systemctl status uacctd.service > /dev/null'
return run(command) == 0
# get list of interfaces
@@ -195,7 +195,7 @@ if not _uacctd_running():
# restart pmacct daemon
if cmd_args.action == 'restart':
# run command to restart flow-accounting
- cmd('/usr/bin/sudo /bin/systemctl restart uacctd',
+ cmd('systemctl restart uacctd.service',
message='Failed to restart flow-accounting')
# clear in-memory collected flows