diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2021-05-18 20:08:47 +0000 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-19 18:32:49 +0200 |
commit | 9197a409876f9943032ac19834b5f04bdac6e00a (patch) | |
tree | 3d492dc8990d34bed2a8f0058a43b3758ac5cf5d /src/op_mode/openconnect-control.py | |
parent | 61051911bf1e3da4f5939dc25177a63489e4a6be (diff) | |
download | vyos-1x-9197a409876f9943032ac19834b5f04bdac6e00a.tar.gz vyos-1x-9197a409876f9943032ac19834b5f04bdac6e00a.zip |
openconnect-server: T3559: Add restart op-command
(cherry picked from commit 5b5e74fb667fa5a5abec779b6c411b3864f3b5fb)
Diffstat (limited to 'src/op_mode/openconnect-control.py')
-rwxr-xr-x | src/op_mode/openconnect-control.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/openconnect-control.py b/src/op_mode/openconnect-control.py index ef9fe618c..c3cd25186 100755 --- a/src/op_mode/openconnect-control.py +++ b/src/op_mode/openconnect-control.py @@ -58,7 +58,7 @@ def main(): is_ocserv_configured() if args.action == "restart": - run("systemctl restart ocserv") + run("sudo systemctl restart ocserv.service") sys.exit(0) elif args.action == "show_sessions": show_sessions() |