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 {