From dbffd657b46fe0edcba67141bf87173448043b70 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 17 Aug 2019 02:15:51 +0200 Subject: openvpn: T1548: add op-mode command for resetting vyos@vyos:~$ reset openvpn interface vtun10 --- op-mode-definitions/openvpn.xml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/openvpn.xml b/op-mode-definitions/openvpn.xml index 9c9c3b3ad..4a7f985e9 100644 --- a/op-mode-definitions/openvpn.xml +++ b/op-mode-definitions/openvpn.xml @@ -58,6 +58,15 @@ echo kill $4 | socat - UNIX-CONNECT:/tmp/openvpn-mgmt-intf > /dev/null + + + Reset OpenVPN process on interface + + + + + sudo kill -SIGUSR1 $(cat /var/run/openvpn/$4.pid) + -- cgit v1.2.3