You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by "Andy Kurth (JIRA)" <ji...@apache.org> on 2015/02/24 19:45:06 UTC

[jira] [Resolved] (VCL-817) pgrep command arguments have changed with RHEL/CentOS 7.x

     [ https://issues.apache.org/jira/browse/VCL-817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Kurth resolved VCL-817.
----------------------------
    Resolution: Fixed

> pgrep command arguments have changed with RHEL/CentOS 7.x
> ---------------------------------------------------------
>
>                 Key: VCL-817
>                 URL: https://issues.apache.org/jira/browse/VCL-817
>             Project: VCL
>          Issue Type: Improvement
>          Components: vcld (backend)
>            Reporter: Andy Kurth
>            Assignee: Andy Kurth
>             Fix For: 2.4
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)