summaryrefslogtreecommitdiff
path: root/debian/openvpn.service
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2014-04-16 18:46:01 +0200
committerAlberto Gonzalez Iniesta <agi@inittab.org>2014-04-16 18:46:01 +0200
commit5f171919d858a425739d1781c4434bab761b36c8 (patch)
treed8dc8c1efe289c84e33be70d37a03f60e0322204 /debian/openvpn.service
parente5caec6bb07020a3e552fc78f679e0517c4569cf (diff)
Initial systemd .service
Diffstat (limited to 'debian/openvpn.service')
-rw-r--r--debian/openvpn.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/openvpn.service b/debian/openvpn.service
new file mode 100644
index 0000000..b76e36e
--- /dev/null
+++ b/debian/openvpn.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=OpenVPN service
+After=network.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/sbin/openvpn-systemd-helper start
+ExecStop=/usr/sbin/openvpn-systemd-helper stop
+ExecReload=/usr/sbin/openvpn-systemd-helper reload
+WorkingDirectory=/etc/openvpn
+
+[Install]
+WantedBy=multi-user.target
+
+