Properly stop OpenVPN module
Until we move this to init.d, we should kill the openvpn process manually.pull/24/head
parent
5132f76964
commit
c9a79cf096
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue