1 description "Start the OpenVPN tunnels"
3 start on pld.network-started
4 stop on pld.network-stopped
10 [ -f /etc/sysconfig/openvpn ] && . /etc/sysconfig/openvpn
12 for tun in $TUNNELS; do
13 if [ ! -f "/etc/openvpn/$tun.conf" ]; then
14 # skip invalid tunnels
18 initctl start openvpn-tunnel TUNNEL=$tun >/dev/null || :
23 [ -f /etc/sysconfig/openvpn ] && . /etc/sysconfig/openvpn
25 for tun in $TUNNELS; do
26 if [ ! -f "/etc/openvpn/$tun.conf" ]; then
27 # skip invalid tunnels
31 initctl stop openvpn-tunnel TUNNEL=$tun >/dev/null || :