Details
-
Improvement
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
5.15.8
-
None
-
None
-
Patch Available
Description
When starting as a casual user, if you happen to have config file that states ACTIVEMQ_USER=activemq, you get something like that :
$ ./bin/activemq start
INFO: Loading '/etc/default/activemq'
INFO: Using java '/usr/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
./bin/activemq: 338: ./bin/activemq: "/usr/bin/java" -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/home/laurent/coopener/apache-activemq-5.15.8//conf/login.config -Djava.awt.headless=true -Djava.io.tmpdir="/home/laurent/coopener/apache-activemq-5.15.8//tmp" -Dactivemq.classpath="/home/laurent/coopener/apache-activemq-5.15.8//conf:/home/laurent/coopener/apache-activemq-5.15.8//../lib/:" -Dactivemq.home="/home/laurent/coopener/apache-activemq-5.15.8/" -Dactivemq.base="/home/laurent/coopener/apache-activemq-5.15.8/" -Dactivemq.conf="/home/laurent/coopener/apache-activemq-5.15.8//conf" -Dactivemq.data="/home/laurent/coopener/apache-activemq-5.15.8//data" -jar "/home/laurent/coopener/apache-activemq-5.15.8//bin/activemq.jar" start >> /dev/null 2>&1 &
RET="$?"; APID="$!";
echo $APID > /home/laurent/coopener/apache-activemq-5.15.8//data/activemq.pid;
echo "INFO: pidfile created : '/home/laurent/coopener/apache-activemq-5.15.8//data/activemq.pid' (pid '$APID')";exit $RET: not found
I propose the following patch to display a more explicit error message.