[ 
https://issues.apache.org/jira/browse/AMQ-6490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16868300#comment-16868300
 ] 

Yurii Tokarev commented on AMQ-6490:
------------------------------------

To fix that, in /apache-activemq-5.15.9/bin/activemq

In the line 98:

echo "$REAL_DIR/"

remove /

to get:

echo "$REAL_DIR"

 

> apache-activemq-5.14.1 shell script bug
> ---------------------------------------
>
>                 Key: AMQ-6490
>                 URL: https://issues.apache.org/jira/browse/AMQ-6490
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.14.1
>            Reporter: kiterunner_t
>            Priority: Major
>
> in apache-activemq-5.14.1 version, your start script named activemq in Linux 
> have two issues:
> 1) in function getActiveMQHome, 
>     echo "$REAL_DIR/"
> will get a path just like 'a//b'.
> 2) when you use a normal username to run this script, $EXEC_OPTION 
> $DOIT_PREFIX will be empty.
> and by the way, when you use sudo command or root to run this script, you 
> will encounter error "-su: 3: cannot create 
> /home/krt/work/debian-work-dir/mq/activemq/apache-activemq-5.14.1//data/activemq.pid:
>  Permission denied". 
> maybe, I should create a new user named activemq to start the activemq, but 
> in your get starting page, you just said, "./activemq start".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to