From 43dd945c5a45c86c491892f30546d0179751bf4a Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Tue, 19 May 2020 21:13:40 +0100 Subject: util: T2467: add systemctl to autosudo --- src/op_mode/flow_accounting_op.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/op_mode') diff --git a/src/op_mode/flow_accounting_op.py b/src/op_mode/flow_accounting_op.py index 219ad6316..bf8c39fd6 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('sudo systemctl restart uacctd.service', + cmd('systemctl restart uacctd.service', message='Failed to restart flow-accounting') # clear in-memory collected flows -- cgit v1.2.3