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

Karaf Wrapper doesn't return the correct exit result when using RUN_AS_USER

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.11, 2.3.2, 3.0.0.RC1
    • Fix Version/s: 2.2.12, 2.3.3, 2.4.0, 3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      When RUN_AS_USER is set the wrapper script will su to that user and then rerun the script. The issue is the parent script doesn't capture the exit code of the su child process but instead always returns 0.

        Attachments

        1. WrapperExitCode-2.2.patch
          0.9 kB
          Chris Geer
        2. WrapperExitCode-2.3.patch
          0.9 kB
          Chris Geer
        3. WrapperExitCode-3.0.patch
          0.9 kB
          Chris Geer

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              geerzo Chris Geer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: