SHA256
1
0
forked from pool/openvpn
openvpn/openvpn.service
Marius Tomaschewski d3f926c85f - Fixed openvpn-tmpfile.conf to use GID root, there is no openvpn group.
- Added openvpn.target file allowing to handle all instances at once.
- Disabled systemd variant of restart on update rpm macro, adopted other
  macros to use openvpn.target to e.g. stop all instances on uninstall.

OBS-URL: https://build.opensuse.org/package/show/network:vpn/openvpn?expand=0&rev=58
2013-04-23 13:22:31 +00:00

16 lines
455 B
Desktop File

[Unit]
Description=OpenVPN tunneling daemon instance using /etc/openvpn/%I.conf
After=network.target
PartOf=openvpn.target
[Service]
Type=forking
PrivateTmp=true
PIDFile=/var/run/openvpn/%i.pid
ExecStart=/usr/sbin/openvpn --daemon --suppress-timestamps --writepid /var/run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf
ExecReload=/sbin/killproc -p /var/run/openvpn/%i.pid -HUP /usr/sbin/openvpn
[Install]
WantedBy=multi-user.target openvpn.target