You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/04/14 00:30:25 UTC
[jira] [Commented] (ARTEMIS-420) The service script should support
running the broker as a different user
[ https://issues.apache.org/jira/browse/ARTEMIS-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15240139#comment-15240139 ]
ASF GitHub Bot commented on ARTEMIS-420:
----------------------------------------
GitHub user jbertram opened a pull request:
https://github.com/apache/activemq-artemis/pull/461
ARTEMIS-420 user switch when broker is service
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jbertram/activemq-artemis ARTEMIS-420
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/461.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #461
----
commit 346841d0a37070223194b6510cbc4e1ad0e8a272
Author: jbertram <jb...@apache.org>
Date: 2016-04-13T22:28:01Z
ARTEMIS-420 user switch when broker is service
----
> The service script should support running the broker as a different user
> ------------------------------------------------------------------------
>
> Key: ARTEMIS-420
> URL: https://issues.apache.org/jira/browse/ARTEMIS-420
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Reporter: Lionel Cons
> Assignee: Justin Bertram
>
> There is no support for changing user in {{artemis-service}}. It simply executes:
> {code}
> nohup ${ARTEMIS_INSTANCE}/bin/artemis run > /dev/null 2> /dev/null &
> {code}
> In contrast, one can set {{APOLLO_USER}} to change the user running the Apollo broker. This is implemented in {{apollo-broker-service}} as:
> {code}
> if [ -z "$APOLLO_USER" -o `id -un` = "$APOLLO_USER" ] ; then
> nohup ${APOLLO_BASE}/bin/apollo-broker run > /dev/null 2> /dev/null &
> else
> sudo -n -u ${APOLLO_USER} nohup ${APOLLO_BASE}/bin/apollo-broker run > /dev/null 2> /dev/null &
> fi
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)