From 4e1663a9607a92b111f0b63032e34464986db4cd Mon Sep 17 00:00:00 2001 From: xuweibj Date: Sun, 2 Dec 2018 20:22:53 -0500 Subject: [PATCH] enhance pr 5715 of httpport check --- xCAT-probe/lib/perl/probe_utils.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-probe/lib/perl/probe_utils.pm b/xCAT-probe/lib/perl/probe_utils.pm index e7749f492..115814943 100644 --- a/xCAT-probe/lib/perl/probe_utils.pm +++ b/xCAT-probe/lib/perl/probe_utils.pm @@ -290,11 +290,11 @@ sub is_http_ready { my $installdir = shift; my $errormsg_ref = shift; - my $http_status = `netstat -tunlp | grep -e "httpd" -e "apache" | grep "LISTEN" 2>&1`; + my $http_status = `netstat -tnlp | grep -e "httpd" -e "apache" 2>&1`; if (!$http_status) { $$errormsg_ref = "No HTTP listening status get by command 'netstat'"; return 0; - } elsif ($http_status !~ /\S*\s+\S*\s+\S*\s+\S*$httpport\s+.+/) { + } elsif ($http_status !~ /\S*\s+\S*\s+\S*\s+\S*:$httpport\s+.+/) { $$errormsg_ref = "The port defined in 'site' table HTTP is not listening"; return 0; }