summaryrefslogtreecommitdiff
path: root/core/openvpn/openvpn@.service
diff options
context:
space:
mode:
Diffstat (limited to 'core/openvpn/openvpn@.service')
-rw-r--r--core/openvpn/openvpn@.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/openvpn/openvpn@.service b/core/openvpn/openvpn@.service
new file mode 100644
index 000000000..c3de3bdf7
--- /dev/null
+++ b/core/openvpn/openvpn@.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=OpenVPN connection to %i
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i --cd /etc/openvpn
+
+[Install]
+WantedBy=multi-user.target