replaced openvpn start w openvpn --daemon --config
parent
fb0d939a24
commit
ba28490073
|
@ -14,7 +14,8 @@ 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
|
#/etc/init.d/openvpn start
|
||||||
|
/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
|
||||||
echo "OpenVPN not configured"
|
echo "OpenVPN not configured"
|
||||||
|
|
Loading…
Reference in New Issue