summaryrefslogtreecommitdiff
path: root/debian/openvpn@.service
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2014-03-14 13:02:21 +0100
committerAlberto Gonzalez Iniesta <agi@inittab.org>2014-03-14 13:54:18 +0100
commit3125e393084124442e409bef697847a1f87fc531 (patch)
tree31ff50b7324b4c12e8ea3fa1f9e573f9e59416d0 /debian/openvpn@.service
parent1f88813d1b92c4143e4b47d853c62c9868ed501b (diff)
Add systemd support
Diffstat (limited to 'debian/openvpn@.service')
-rw-r--r--debian/openvpn@.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/openvpn@.service b/debian/openvpn@.service
new file mode 100644
index 0000000..a7ec1ee
--- /dev/null
+++ b/debian/openvpn@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=OpenVPN connection to %i
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --config /etc/openvpn/%i.conf
+WorkingDirectory=/etc/openvpn
+
+[Install]
+WantedBy=multi-user.target
+
+