]> TLD Linux GIT Repositories - packages/openvpn.git/blobdiff - openvpn.upstart
- killed systemd stuff
[packages/openvpn.git] / openvpn.upstart
diff --git a/openvpn.upstart b/openvpn.upstart
deleted file mode 100644 (file)
index 13abace..0000000
+++ /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