2013-03-25 16:08:09 +01:00
|
|
|
[Unit]
|
2013-04-23 15:22:31 +02:00
|
|
|
Description=OpenVPN tunneling daemon instance using /etc/openvpn/%I.conf
|
|
|
|
After=network.target
|
|
|
|
PartOf=openvpn.target
|
2013-03-25 16:08:09 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
2013-04-23 14:40:53 +02:00
|
|
|
PrivateTmp=true
|
2013-03-25 16:08:09 +01:00
|
|
|
PIDFile=/var/run/openvpn/%i.pid
|
2018-02-13 19:21:21 +01:00
|
|
|
ExecStart=/usr/sbin/openvpn --daemon --askpass --suppress-timestamps --writepid /var/run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf
|
2013-04-23 14:40:53 +02:00
|
|
|
ExecReload=/sbin/killproc -p /var/run/openvpn/%i.pid -HUP /usr/sbin/openvpn
|
2013-03-25 16:08:09 +01:00
|
|
|
|
|
|
|
[Install]
|
2013-04-23 15:22:31 +02:00
|
|
|
WantedBy=multi-user.target openvpn.target
|
2013-03-25 16:08:09 +01:00
|
|
|
|