18 lines
389 B
Desktop File
18 lines
389 B
Desktop File
[Unit]
|
|
Description=OpenVPN connection to %i
|
|
PartOf=openvpn.service
|
|
ReloadPropagatedFrom=openvpn.service
|
|
|
|
[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
|
|
Restart=always
|
|
RestartSec=2
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
|