karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-2890) The env variables can't be read while running karaf as a Linux service
Date Wed, 24 Sep 2014 11:53:34 GMT

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

Jean-Baptiste Onofré commented on KARAF-2890:
---------------------------------------------

I wasn't very "open" to do this change.

Maybe it's better to revert, and document how to update the service script in case of the
user who launches Karaf needs to access his profile.

> The env variables can't be read while running karaf as a Linux service
> ----------------------------------------------------------------------
>
>                 Key: KARAF-2890
>                 URL: https://issues.apache.org/jira/browse/KARAF-2890
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.3.3
>            Reporter: Xilai Dai
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.0.0, 3.0.3, 2.4.1, 2.3.8
>
>
> Install karaf as a Linux service following steps:
> 1. features:install wrapper
> 2. wrapper:install -s AUTO_START -n talend-runtime -d talend-runtime -D "Talend Runtime
Service"
> $ ln -s /Talend/runtime/bin/talend-runtime-service /etc/init.d/talend-runtime
> the fragment from generated script:
> {code}
> # Still want to change users, recurse.  This means that the user will only be
> #  prompted for a password once.
>   su -m $RUN_AS_USER -s /bin/sh -c "$REALPATH $1"
> {code}
> it should be:
> {code}
>  # Still want to change users, recurse.  This means that the user will only be
>  #  prompted for a password once.
>  su - -m $RUN_AS_USER -c "$REALPATH $1"
> {code}
> Because the user login script (.bash_profile) can't be executed without '-' after 'su';
and '-s /bin/sh' is not standard, the default shell of the run_as user (e.g. bash) should
be used.



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

Mime
View raw message