[
https://issues.apache.org/jira/browse/ARTEMIS-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Bertram reassigned ARTEMIS-420:
--------------------------------------
Assignee: Justin Bertram
> 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)