public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] wio: Update openvpn.pid to openvpn-rw.pid
@ 2025-09-15 12:07 Adolf Belka
  0 siblings, 0 replies; only message in thread
From: Adolf Belka @ 2025-09-15 12:07 UTC (permalink / raw)
  To: development; +Cc: Adolf Belka

- This change was needed together with the log file name change to have wio show the
   openvpn statuses.
- Tested and confirmed on my vm testbed.
- Will leave it to be decided if this gets merged into CU197 Testing or waits for CU198
   Either is fine for me.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/wio/wio.pl    | 2 +-
 config/wio/wiovpn.pl | 2 +-
 html/cgi-bin/wio.cgi | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/config/wio/wio.pl b/config/wio/wio.pl
index 78c91eeb9..8efbe600f 100644
--- a/config/wio/wio.pl
+++ b/config/wio/wio.pl
@@ -82,7 +82,7 @@ if ( -e $rediface ) {
 
 my $redip      = $hostname;
 my $vpnpid     = ( -e "/var/run/charon.pid" ? `awk '{print $1}' /var/run/charon.pid`: '');
-my $ovpnpid    = ( -e  "/var/run/openvpn.pid" ? `awk '{print $1}' /var/run/openvpn.pid`: '');
+my $ovpnpid    = ( -e  "/var/run/openvpn-rw.pid" ? `awk '{print $1}' /var/run/openvpn-rw.pid`: '');
 
 my $steptime   = $wiosettings{'CRON'} *= 60;
 my $i_ping     = 'icmp';
diff --git a/config/wio/wiovpn.pl b/config/wio/wiovpn.pl
index 80b020dc9..279b858b4 100644
--- a/config/wio/wiovpn.pl
+++ b/config/wio/wiovpn.pl
@@ -51,7 +51,7 @@ my $logging    = $wiosettings{'LOGGING'};
 my ( @ovpnstatus, @ovpncfg, @ovpncache, @ovpnarray, @ovpnmatch, @ovpnwrite );
 
 my $now         = strftime "%a, %d.%m.%Y %H:%M:%S", localtime;
-my $ovpnpid     = "/var/run/openvpn.pid";
+my $ovpnpid     = "/var/run/openvpn-rw.pid";
 my $ovpnmailmsg = '';
 my $ovpncache   = "/var/log/wio/.ovpncache";
 my $ovpnconfig  = "/var/ipfire/ovpn/ovpnconfig";
diff --git a/html/cgi-bin/wio.cgi b/html/cgi-bin/wio.cgi
index d988ec597..9975c294d 100644
--- a/html/cgi-bin/wio.cgi
+++ b/html/cgi-bin/wio.cgi
@@ -84,7 +84,7 @@ my $rrddir       = "/var/log/rrd/wio";
 my $refreshbox   = '<meta http-equiv="refresh" content="0;url=/cgi-bin/wio.cgi">';
 my $sortstring   = '^IPADR|^HOST';
 my $ovpnaddon    = "/var/ipfire/ovpn";
-my $ovpnpid      = "/var/run/openvpn.pid";
+my $ovpnpid      = "/var/run/openvpn-rw.pid";
 my $vpnpid       = "/var/run/charon.pid";
 my $redactive    = "/var/ipfire/red/active";
 my $redip        = '-';
-- 
2.51.0



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-09-15 12:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-15 12:07 [PATCH] wio: Update openvpn.pid to openvpn-rw.pid Adolf Belka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox