Created attachment 472898 [details] openvpn-2.4.2:20170517-072707.log.gz $ qlist openvpn | grep tmpfile /usr/lib/tmpfiles.d/openvpn.conf /usr/lib64/tmpfiles.d/openvpn.conf $ qlist openvpn | grep systemd /usr/lib/systemd/system/openvpn-server@.service /usr/lib/systemd/system/openvpn-client@.service /usr/lib64/systemd/system/openvpn-server@.service /usr/lib64/systemd/system/openvpn-client@.service $ cat /usr/lib/tmpfiles.d/openvpn.conf D /var/run/openvpn 0710 root openvpn - $ cat /usr/lib64/tmpfiles.d/openvpn.conf d /run/openvpn-client 0710 root root - d /run/openvpn-server 0710 root root -
Created attachment 472900 [details, diff] openvpn-9999 patch Patch for 2.4.2 and 9999
To clarify this a bit: openvpn currently doesn't start with systemd due to missing /run/openvpn-{client,server} directories.
Created attachment 472906 [details, diff] 0001-net-vpn-openvpn-fix-installation-of-systemd-units-an.patch Proper git patch. Just in the case you prefer that.
(In reply to Alexander Tsoy from comment #2) > To clarify this a bit: openvpn currently doesn't start with systemd due to > missing /run/openvpn-{client,server} directories. More specifically, it fails to start only in server mode due to --status option: $ grep ExecStart /usr/lib/systemd/system/openvpn-server@.service ExecStart=/usr/sbin/openvpn --status %t/openvpn-server/status-%i.log --status-version 2 --suppress-timestamps --config %i.conf
I'm running into a similar problem with 2.4.2, but I'm not using systemd... [ebuild R ] net-vpn/openvpn-2.4.2::gentoo USE="examples lzo pam plugins ssl -down-root -inotify -iproute2 (-libressl) -lz4 -mbedtls -pkcs11 (-polarssl) (-selinux) -static -systemd {-test}" 0 KiB When trying to start... /etc/init.d/openvpn start * Caching service dependencies ... [ ok ] * Starting openvpn ... * start-stop-daemon: failed to start `/usr/sbin/openvpn' * Check your logs to see why startup failed [ !! ] * ERROR: openvpn failed to start Nothing in my logs. Rolling back for now.
Thanks, applied as commit a85313eceb8e3e8d4031051c0d35336e41f42d7d (HEAD -> master, origin/master, origin/HEAD) Author: Alexander Tsoy <alexander@tsoy.me> Date: Wed May 17 11:13:29 2017 +0300 net-vpn/openvpn: fix installation of systemd units and tmpfiles Bug: https://bugs.gentoo.org/618722