wio: Update openvpn.pid to openvpn-rw.pid
Commit Message
- 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(-)
@@ -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';
@@ -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";
@@ -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 = '-';