Skip to content

Inconsistent httpd detection #447

Description

@jesusbagpuss

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions