FS#43278 - [openvpn] Use systemd units provided by upstream
Attached to Project:
Arch Linux
Opened by Daniel M. Capella (polyzen) - Wednesday, 31 December 2014, 01:15 GMT
Last edited by Christian Hesse (eworm) - Wednesday, 17 August 2016, 16:44 GMT
Opened by Daniel M. Capella (polyzen) - Wednesday, 31 December 2014, 01:15 GMT
Last edited by Christian Hesse (eworm) - Wednesday, 17 August 2016, 16:44 GMT
|
Details
Description:
Upstream provides systemd units[1] in the source tarball.[2] Please use these. [1]https://github.com/OpenVPN/openvpn/commit/3341a98c2852d1d0c1eafdc70a3bdb218ec29049 [2]https://github.com/OpenVPN/openvpn/commit/6ece60c6dc7a3cda58f4dfea4e6cd3016023234f |
This task depends upon
Closed by Christian Hesse (eworm)
Wednesday, 17 August 2016, 16:44 GMT
Reason for closing: Implemented
Additional comments about closing: openvpn@.service from openvpn 2.3.11-3 starts after network-online.target
Wednesday, 17 August 2016, 16:44 GMT
Reason for closing: Implemented
Additional comments about closing: openvpn@.service from openvpn 2.3.11-3 starts after network-online.target
The upstream one works better, though I removed the client dir as to match Archlinux's structure:
http://s.natalian.org/2015-08-06/openvpn@.service
http://s.natalian.org/2015-08-06/openvpn.conf <-- /usr/lib/tmpfiles.d/openvpn.conf to create /var/run/openvpn !
I updated our unit file, though. It now starts after network-online.target, but does not pull it as a dependency.
You have two options now:
1. Any other unit depends on network-online.target and pulls it in.
2. You enable it yourself. As network-online.target does not have an install section you need to do this manually:
mkdir /etc/systemd/system/openvpn@.service.wants
ln -s /usr/lib/systemd/system/network-online.target /etc/systemd/system/openvpn@.service.wants/network-online.target