summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkroy-the-rabbit <kroy@kroy.io>2020-05-15 23:50:15 -0500
committerGitHub <noreply@github.com>2020-05-15 23:50:15 -0500
commit939eefc2f5c72c8a162d495a233cffd025519ab0 (patch)
treefd57b3747ef134538a2c3f602139ec831e9f7fc2
parente5edc073c297446833764107485a3183e2957b6a (diff)
downloadvyos-1x-939eefc2f5c72c8a162d495a233cffd025519ab0.tar.gz
vyos-1x-939eefc2f5c72c8a162d495a233cffd025519ab0.zip
T2467: Restarting of service needs `sudo`
-rwxr-xr-xsrc/op_mode/flow_accounting_op.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/flow_accounting_op.py b/src/op_mode/flow_accounting_op.py
index bf8c39fd6..219ad6316 100755
--- a/src/op_mode/flow_accounting_op.py
+++ b/src/op_mode/flow_accounting_op.py
@@ -195,7 +195,7 @@ if not _uacctd_running():
# restart pmacct daemon
if cmd_args.action == 'restart':
# run command to restart flow-accounting
- cmd('systemctl restart uacctd.service',
+ cmd('sudo systemctl restart uacctd.service',
message='Failed to restart flow-accounting')
# clear in-memory collected flows