In some cases, the ps -C command is passed multiple variants of the apache process name e.g.
|
my @process_info = split(' ', `ps -C 'httpd httpd.worker apache apache2 /usr/sbin/httpd /usr/sbin/httpd.worker' -f | grep '^root'`); |
In the main program loop, only 'httpd' and 'apache2' are checked:
|
our $httpd_detected = `ps -C httpd -o rss | grep -v RSS`; |
|
our $apache2_detected = `ps -C apache2 -o rss | grep -v RSS`; |
causing apache not to be detected in some cases (e.g. RHEL9.8).
In some cases, the
ps -Ccommand is passed multiple variants of the apache process name e.g.apache2buddy/apache2buddy.pl
Line 1824 in ad2e384
In the main program loop, only 'httpd' and 'apache2' are checked:
apache2buddy/apache2buddy.pl
Line 2880 in ad2e384
apache2buddy/apache2buddy.pl
Line 2891 in ad2e384
causing apache not to be detected in some cases (e.g. RHEL9.8).