Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/openvpn/files/
Date: Fri, 30 Apr 2021 18:59:04
Message-Id: 1619809114.1f8b4d1f8eaeb437a12b4cbd520199596bf80c55.whissi@gentoo
1 commit: 1f8b4d1f8eaeb437a12b4cbd520199596bf80c55
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 30 18:15:06 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 30 18:58:34 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f8b4d1f
7
8 net-vpn/openvpn: runscript: use /run instead of /var/run
9
10 Closes: https://bugs.gentoo.org/685316
11 Package-Manager: Portage-3.0.18, Repoman-3.0.3
12 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
13
14 net-vpn/openvpn/files/openvpn-2.1.init | 6 +++---
15 1 file changed, 3 insertions(+), 3 deletions(-)
16
17 diff --git a/net-vpn/openvpn/files/openvpn-2.1.init b/net-vpn/openvpn/files/openvpn-2.1.init
18 index b42aa13d20d..ba05689a1e0 100644
19 --- a/net-vpn/openvpn/files/openvpn-2.1.init
20 +++ b/net-vpn/openvpn/files/openvpn-2.1.init
21 @@ -1,13 +1,13 @@
22 #!/sbin/openrc-run
23 -# Copyright 1999-2007 Gentoo Foundation
24 +# Copyright 1999-2021 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26
27 VPNDIR=${VPNDIR:-/etc/openvpn}
28 VPN=${SVCNAME#*.}
29 if [ -n "${VPN}" ] && [ ${SVCNAME} != "openvpn" ]; then
30 - VPNPID="/var/run/openvpn.${VPN}.pid"
31 + VPNPID="/run/openvpn.${VPN}.pid"
32 else
33 - VPNPID="/var/run/openvpn.pid"
34 + VPNPID="/run/openvpn.pid"
35 fi
36 VPNCONF="${VPNDIR}/${VPN}.conf"