Laurent Martelli created AMQ-7141:
-------------------------------------

             Summary: Running as as specific user while not root
                 Key: AMQ-7141
                 URL: https://issues.apache.org/jira/browse/AMQ-7141
             Project: ActiveMQ
          Issue Type: Improvement
          Components: Distribution
    Affects Versions: 5.15.8
            Reporter: Laurent Martelli
         Attachments: patch

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.



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

Reply via email to