replaced openvpn start w openvpn --daemon --config

pull/10/head
Darren Kitchen 2015-09-20 09:00:53 -07:00
parent fb0d939a24
commit ba28490073
1 changed files with 2 additions and 1 deletions

View File

@ -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"