From 939eefc2f5c72c8a162d495a233cffd025519ab0 Mon Sep 17 00:00:00 2001 From: kroy-the-rabbit Date: Fri, 15 May 2020 23:50:15 -0500 Subject: T2467: Restarting of service needs `sudo` --- src/op_mode/flow_accounting_op.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3