Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-817

pgrep command arguments have changed with RHEL/CentOS 7.x

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: vcld (backend)
    • Labels:
      None

      Description

      We use pgrep -fl in a few places. This used to return the full command names for each matching process. This no longer seems to be the case with 7.x. The command names are truncated. There is a new -a switch which causes the full names to be displayed. Unfortunately, the -a switch is not available on earlier versions and the command fails if it is included.

      Code needs to be updated to detect which switches are available and then assemble the correct command.

      This is very important. pgrep is used to ensure multiple processes aren't forked for the same reservation.

        Attachments

          Activity

            People

            • Assignee:
              arkurth Andrew Kurth
              Reporter:
              arkurth Andrew Kurth
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: