Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5304

checkRootInstance function in karaf script fails under AIX

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.9
    • Fix Version/s: 4.0.10, 4.1.3, 4.2.0.M1
    • Component/s: None
    • Labels:
      None
    • Environment:

      AIX 6.1, 7.1, 7.2

      Description

      Calling e.g. the status script under KARAF_HOME on AIX, the subsequent called script "karaf" fails and prints the following to stdout:

      [...]
      Usage: ps [-AMNZaedfklm] [-n namelist] [-F Format] [-o specifier[=header],...]
      [-p proclist][-G|-g grouplist] [-t termlist] [-U|-u userlist] [-c classlist] [ -T pid] [ -L pidlist ]
      [-@ [wparname] ]
      Usage: ps [aceglnsuvwxX] [t tty] [processnumber]
      [...]

      The error is triggered by the function checkRootInstance() in the script "karaf". The function uses the following code to determine the status of the karaf process:

      [...]
      if ps p "${ROOT_INSTANCE_PID}" > /dev/null
      then
      [...]

      Under a standard AIX installation the command ps does not allow "p" as an argument. So this call will always fail.

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              c.bruessow@cenit.de Christian Brüssow
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: