2014-11-21 22:54:02 +00:00
|
|
|
[Unit]
|
|
|
|
Description=OpenVPN connection to %i
|
|
|
|
PartOf=openvpn.service
|
|
|
|
ReloadPropagatedFrom=openvpn.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
2014-11-22 20:50:24 +00:00
|
|
|
ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn.%i.status 10 --cd /etc/openvpn --config /etc/openvpn/%i.conf
|
2014-11-21 22:54:02 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
WorkingDirectory=/etc/openvpn
|
2014-11-21 23:05:29 +00:00
|
|
|
Restart=always
|
|
|
|
RestartSec=2
|
2014-11-21 22:54:02 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|
|
|
|
|