summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-05-18 20:08:47 +0000
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-05-18 20:08:47 +0000
commit5b5e74fb667fa5a5abec779b6c411b3864f3b5fb (patch)
tree4539833ce2f94a60c613671515333fb2f9fba626 /src/op_mode
parentb76931e6d3a4bd0cdb74ca447a746ab6855fcf55 (diff)
downloadvyos-1x-5b5e74fb667fa5a5abec779b6c411b3864f3b5fb.tar.gz
vyos-1x-5b5e74fb667fa5a5abec779b6c411b3864f3b5fb.zip
openconnect-server: T3559: Add restart op-command
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/openconnect-control.py2
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()