From c9a79cf09612c1b1ec88f8d80b1acba930ec5d48 Mon Sep 17 00:00:00 2001 From: Sebastian Kinne Date: Wed, 22 Nov 2017 13:45:41 +1100 Subject: [PATCH] Properly stop OpenVPN module Until we move this to init.d, we should kill the openvpn process manually. --- modules/openvpn | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/openvpn b/modules/openvpn index 7e12b5e..b330ae9 100755 --- a/modules/openvpn +++ b/modules/openvpn @@ -14,7 +14,6 @@ CONF=/tmp/openvpn.form function start { if [ -s /etc/openvpn/my-vpn.conf ] then - #/etc/init.d/openvpn start /usr/sbin/openvpn --daemon --config /etc/openvpn/my-vpn.conf echo -n "openvpn started with pid: "; pidof openvpn else @@ -23,7 +22,7 @@ function start { } function stop { - /etc/init.d/openvpn stop + killall openvpn } function status {