summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2020-05-16 11:55:10 +0700
committerGitHub <noreply@github.com>2020-05-16 11:55:10 +0700
commit02ee6b7bf1bcb0a6d55b3d02496d2f501e622ea2 (patch)
treefd57b3747ef134538a2c3f602139ec831e9f7fc2
parente5edc073c297446833764107485a3183e2957b6a (diff)
parent939eefc2f5c72c8a162d495a233cffd025519ab0 (diff)
downloadvyos-1x-02ee6b7bf1bcb0a6d55b3d02496d2f501e622ea2.tar.gz
vyos-1x-02ee6b7bf1bcb0a6d55b3d02496d2f501e622ea2.zip
Merge pull request #410 from kroy-the-rabbit/patch-3
T2467: Restarting of service needs a 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