You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Rene Krell (JIRA)" <ji...@apache.org> on 2016/09/30 07:13:20 UTC
[jira] [Created] (AMQ-6447) /bin/activemq start as root fails if
$ACTIVEMQ_USER is set to user with /bin/csh as login shell
Rene Krell created AMQ-6447:
-------------------------------
Summary: /bin/activemq start as root fails if $ACTIVEMQ_USER is set to user with /bin/csh as login shell
Key: AMQ-6447
URL: https://issues.apache.org/jira/browse/AMQ-6447
Project: ActiveMQ
Issue Type: Bug
Components: Distribution
Affects Versions: 5.10.0
Reporter: Rene Krell
Provided the following circumstances:
- Linux/Unix,
- in the bin/activemq script is used the $ACTIVE_USER variable set to a valid system user which has */bin/csh* as default login shell (/etc/passwd) instead of bash,
- bin/activemq or its symlink to /etc/init.d is called as *root* user.
For the above conditions, ActiveMQ start fails with:
{noformat}
Ambiguous output redirect.
RET=1: Command not found.
APID=: Command not found.
APID: Undefined variable.
APID: Undefined variable.
{noformat}
Users with /bin/csh as default shell are sometimes required, for instance for using as SAP Netweaver user.
The solution is quite simple: In bin/activemq, find the (two) calls of {{su -c ...}} and replace them by {{su -s /bin/sh -c ...'}} to force bash to be the default shell in each case.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)