summaryrefslogtreecommitdiff
path: root/debian/openvpn@.service
blob: a6834da34237eb22de3d6c50a5f8244e89e42649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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