activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lionel Cons (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ARTEMIS-420) The service script should support running the broker as a different user
Date Wed, 24 Feb 2016 08:08:18 GMT
Lionel Cons created ARTEMIS-420:
-----------------------------------

             Summary: 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


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)

Mime
View raw message