You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Ben Magistro (JIRA)" <ji...@apache.org> on 2016/02/28 02:38:18 UTC

[jira] [Created] (AMQ-6190) When running "./bin/activemq console" PID file is not owned by "ACTIVEMQ_USER"

Ben Magistro created AMQ-6190:
---------------------------------

             Summary: When running "./bin/activemq console" PID file is not owned by "ACTIVEMQ_USER"
                 Key: AMQ-6190
                 URL: https://issues.apache.org/jira/browse/AMQ-6190
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.13.0
         Environment: CentOS 6.x
            Reporter: Ben Magistro
            Priority: Minor


When "ACTIVEMQ_USER" is defined and launching via "./bin/activemq start" PID file is owned by the defined user.  If launching as "./bin/activemq console" PID file is owned by the calling user.  Subsequent calls to "start" may fail as permissions would not allow the defined user to manipulate the file.

Workarounds:
1) call console using "sudo -u <defined user> ./bin/activemq console" (or switch to the user if it is allowed (user may not be allowed to login)
2) change ownership of pid file
3) remove pid file

Suggest either creating the pid file using the defined user and/or removing the pid file once ctrl+c has been pressed/console run ends.

May attempt writing a patch.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)