SHA256
1
0
forked from pool/openvpn
openvpn/openvpn.service
Reinhard Max 3e6d073d65 Accepting request 781397 from home:Vogtinator:branches:network:vpn
- Fix inconsistency in openvpn.service:
  * It uses the unescape instance name as config file basename,
    so use that in the description as well

OBS-URL: https://build.opensuse.org/request/show/781397
OBS-URL: https://build.opensuse.org/package/show/network:vpn/openvpn?expand=0&rev=150
2020-03-09 09:28:36 +00:00

17 lines
551 B
Desktop File

[Unit]
Description=OpenVPN tunneling daemon instance using /etc/openvpn/%i.conf
After=network.target
PartOf=openvpn.target
[Service]
Type=notify
PrivateTmp=true
PIDFile=/var/run/openvpn/%i.pid
ExecStart=/usr/sbin/openvpn --daemon openvpn@%i --suppress-timestamps --writepid /var/run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf
# boo#1142830: "reload" does not work if openvpn drops root privileges after startup.
ExecReload=/sbin/killproc -p /var/run/openvpn/%i.pid -HUP /usr/sbin/openvpn
[Install]
WantedBy=multi-user.target openvpn.target