karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Opher Shachar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-2471) Karaf Wrapper doesn't return the correct exit result when using RUN_AS_USER
Date Mon, 30 Sep 2013 12:47:24 GMT

    [ https://issues.apache.org/jira/browse/KARAF-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13781777#comment-13781777
] 

Opher Shachar commented on KARAF-2471:
--------------------------------------

Hello Jean,
Reviewing KARAF-2270 I came across this issue.
It seems a typo crept into the patch for trunk:
Line 344 says: {code} exit $RESTVAL{code}
instead of: {code} exit $RETVAL{code}

> Karaf Wrapper doesn't return the correct exit result when using RUN_AS_USER
> ---------------------------------------------------------------------------
>
>                 Key: KARAF-2471
>                 URL: https://issues.apache.org/jira/browse/KARAF-2471
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.11, 2.3.2, 3.0.0.RC1
>            Reporter: Chris Geer
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 2.2.12, 2.3.3, 2.4.0, 3.0.0
>
>         Attachments: WrapperExitCode-2.2.patch, WrapperExitCode-2.3.patch, WrapperExitCode-3.0.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message