commit:     1f8b4d1f8eaeb437a12b4cbd520199596bf80c55
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 30 18:15:06 2021 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Apr 30 18:58:34 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f8b4d1f

net-vpn/openvpn: runscript: use /run instead of /var/run

Closes: https://bugs.gentoo.org/685316
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 net-vpn/openvpn/files/openvpn-2.1.init | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net-vpn/openvpn/files/openvpn-2.1.init 
b/net-vpn/openvpn/files/openvpn-2.1.init
index b42aa13d20d..ba05689a1e0 100644
--- a/net-vpn/openvpn/files/openvpn-2.1.init
+++ b/net-vpn/openvpn/files/openvpn-2.1.init
@@ -1,13 +1,13 @@
 #!/sbin/openrc-run
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 VPNDIR=${VPNDIR:-/etc/openvpn}
 VPN=${SVCNAME#*.}
 if [ -n "${VPN}" ] && [ ${SVCNAME} != "openvpn" ]; then
-       VPNPID="/var/run/openvpn.${VPN}.pid"
+       VPNPID="/run/openvpn.${VPN}.pid"
 else
-       VPNPID="/var/run/openvpn.pid"
+       VPNPID="/run/openvpn.pid"
 fi
 VPNCONF="${VPNDIR}/${VPN}.conf"
 

Reply via email to