Properly stop OpenVPN module

Until we move this to init.d, we should kill the openvpn process manually.
pull/24/head
Sebastian Kinne 2017-11-22 13:45:41 +11:00 committed by GitHub
parent 5132f76964
commit c9a79cf096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -14,7 +14,6 @@ CONF=/tmp/openvpn.form
function start { function start {
if [ -s /etc/openvpn/my-vpn.conf ] if [ -s /etc/openvpn/my-vpn.conf ]
then then
#/etc/init.d/openvpn start
/usr/sbin/openvpn --daemon --config /etc/openvpn/my-vpn.conf /usr/sbin/openvpn --daemon --config /etc/openvpn/my-vpn.conf
echo -n "openvpn started with pid: "; pidof openvpn echo -n "openvpn started with pid: "; pidof openvpn
else else
@ -23,7 +22,7 @@ function start {
} }
function stop { function stop {
/etc/init.d/openvpn stop killall openvpn
} }
function status { function status {