summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-12-07 12:31:53 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-12-07 12:31:53 +0000
commitecb245f13f8f4c28f13a0ea32cba19f2b56758cd (patch)
tree73c33c394f8dbf76e986a4fca87bbb63daabcec3
parentec6aaf72378d02753ca38ff17adadf785b2b21bd (diff)
downloadvyos-1x-ecb245f13f8f4c28f13a0ea32cba19f2b56758cd.tar.gz
vyos-1x-ecb245f13f8f4c28f13a0ea32cba19f2b56758cd.zip
T4861: Openconnect replace restart to reload-or-restart
Every change in openconnect restarts the ocserv.service Replace "restart" to "reload-or-restart" to avoid disconnect clients during change configs
-rwxr-xr-xsrc/conf_mode/vpn_openconnect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/vpn_openconnect.py b/src/conf_mode/vpn_openconnect.py
index b336b0c03..af3c51efc 100755
--- a/src/conf_mode/vpn_openconnect.py
+++ b/src/conf_mode/vpn_openconnect.py
@@ -247,7 +247,7 @@ def apply(ocserv):
if os.path.exists(file):
os.unlink(file)
else:
- call('systemctl restart ocserv.service')
+ call('systemctl reload-or-restart ocserv.service')
counter = 0
while True:
# exit early when service runs