You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by rkrell <re...@gmail.com> on 2016/09/29 11:28:56 UTC

Re: changing user fails when running activemq from init.d

I've been faced with exactly the same problem and found out the problem to be
a small inaccuracy in the bin/activemq script (version 5.10.0), when the
ACTIVEMQ_USER variable is set to a dedicated system user AND this system
user does have /bin/csh in /etc/passwd defined as default shell instead of
/bin/sh (bash).

The fix is quite simple: In bin/activemq, find the (two) calls of 'su -c
...' and replace them by 'su -s /bin/sh -c ...'.

That's all.

This should get probably fixed in the ActiveMQ start scripts itself.



--
View this message in context: http://activemq.2283324.n4.nabble.com/changing-user-fails-when-running-activemq-from-init-d-tp4685689p4717204.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: changing user fails when running activemq from init.d

Posted by Tim Bain <tb...@alumni.duke.edu>.
Awesome, thanks for helping out.

On Sep 30, 2016 1:15 AM, "rkrell" <re...@gmail.com> wrote:

> Sure, here you are: https://issues.apache.org/jira/browse/AMQ-6447.
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/changing-user-fails-when-running-activemq-
> from-init-d-tp4685689p4717281.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Re: changing user fails when running activemq from init.d

Posted by rkrell <re...@gmail.com>.
Sure, here you are: https://issues.apache.org/jira/browse/AMQ-6447.



--
View this message in context: http://activemq.2283324.n4.nabble.com/changing-user-fails-when-running-activemq-from-init-d-tp4685689p4717281.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: changing user fails when running activemq from init.d

Posted by Tim Bain <tb...@alumni.duke.edu>.
Can you please submit a bug report in JIRA for this?

On Sep 29, 2016 5:34 AM, "rkrell" <re...@gmail.com> wrote:

> I've been faced with exactly the same problem and found out the problem to
> be
> a small inaccuracy in the bin/activemq script (version 5.10.0), when the
> ACTIVEMQ_USER variable is set to a dedicated system user AND this system
> user does have /bin/csh in /etc/passwd defined as default shell instead of
> /bin/sh (bash).
>
> The fix is quite simple: In bin/activemq, find the (two) calls of 'su -c
> ...' and replace them by 'su -s /bin/sh -c ...'.
>
> That's all.
>
> This should get probably fixed in the ActiveMQ start scripts itself.
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/changing-user-fails-when-running-activemq-
> from-init-d-tp4685689p4717204.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>