diff options
author | Alberto Gonzalez Iniesta <agi@inittab.org> | 2014-03-14 13:02:21 +0100 |
---|---|---|
committer | Alberto Gonzalez Iniesta <agi@inittab.org> | 2014-03-14 13:54:18 +0100 |
commit | 3125e393084124442e409bef697847a1f87fc531 (patch) | |
tree | 31ff50b7324b4c12e8ea3fa1f9e573f9e59416d0 /debian/openvpn@.service | |
parent | 1f88813d1b92c4143e4b47d853c62c9868ed501b (diff) |
Add systemd support
Diffstat (limited to 'debian/openvpn@.service')
-rw-r--r-- | debian/openvpn@.service | 13 |
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 + + |