diff options
Diffstat (limited to 'debian/openvpn@.service')
-rw-r--r-- | debian/openvpn@.service | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/openvpn@.service b/debian/openvpn@.service new file mode 100644 index 0000000..a6834da --- /dev/null +++ b/debian/openvpn@.service @@ -0,0 +1,14 @@ +[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 +ExecReload=/bin/kill -HUP $MAINPID +WorkingDirectory=/etc/openvpn + +[Install] +WantedBy=multi-user.target + + |