X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=openvpn.upstart;fp=openvpn.upstart;h=0000000000000000000000000000000000000000;hb=198beee9b15742a578260bd417f2653b5d045c8a;hp=13abaceaf834d5a192281753ef622793bc1d59f0;hpb=005d29067c8f1f75225446b1859b74f2f96fdf7d;p=packages%2Fopenvpn.git diff --git a/openvpn.upstart b/openvpn.upstart deleted file mode 100644 index 13abace..0000000 --- a/openvpn.upstart +++ /dev/null @@ -1,33 +0,0 @@ -description "Start the OpenVPN tunnels" - -start on pld.network-started -stop on pld.network-stopped - -task -console output - -script - [ -f /etc/sysconfig/openvpn ] && . /etc/sysconfig/openvpn - - for tun in $TUNNELS; do - if [ ! -f "/etc/openvpn/$tun.conf" ]; then - # skip invalid tunnels - continue - fi - - initctl start openvpn-tunnel TUNNEL=$tun >/dev/null || : - done -end script - -pre-stop script - [ -f /etc/sysconfig/openvpn ] && . /etc/sysconfig/openvpn - - for tun in $TUNNELS; do - if [ ! -f "/etc/openvpn/$tun.conf" ]; then - # skip invalid tunnels - continue - fi - - initctl stop openvpn-tunnel TUNNEL=$tun >/dev/null || : - done -end script