You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2021/12/09 10:07:00 UTC

[jira] [Updated] (AMQ-8411) ActiveMQ does not stop if ACTIVEMQ_USER is set

     [ https://issues.apache.org/jira/browse/AMQ-8411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated AMQ-8411:
--------------------------------------
    Fix Version/s: 5.16.4

> ActiveMQ does not stop if ACTIVEMQ_USER is set
> ----------------------------------------------
>
>                 Key: AMQ-8411
>                 URL: https://issues.apache.org/jira/browse/AMQ-8411
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.16.3
>         Environment: Platform: Linux - Red Hat Enterprise Linux release 8.4 (Ootpa)
>            Reporter: Håkan Johansson
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 5.16.4
>
>         Attachments: amq-8411.patch
>
>
> After upgrading from version 5.15.7 to 5.16.3 the broker no longer stops on command.
> Step-by-step:
> * tar zxf apache-activemq-5.16.3-bin.tar.gz
> * cd apache-activemq-5.16.3
> * vi bin/env
> ** Set: ACTIVEMQ_USER="<current_user>"
> * sudo bin/activemq start
> * sudo bin/activemq stop
> The "sudo" part is important. In our prod system we run this script as root so that is can change the user to $ACTIVEMQ_USER.
> Output from start command:
> {noformat}
> INFO: Loading '/home/hakjo/Downloads/apache-activemq-5.16.3//bin/env'
> INFO: Using java '/usr/bin/java'
> INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
> INFO: changing to user 'hakjo' to invoke java
> INFO: pidfile created : '/home/hakjo/Downloads/apache-activemq-5.16.3//data/activemq.pid' (pid '40650')
> {noformat}
> Output from stop command:
> {noformat}
> INFO: Loading '/home/hakjo/Downloads/apache-activemq-5.16.3//bin/env'
> INFO: Using java '/usr/bin/java'
> ERROR: No or outdated process id in '/home/hakjo/Downloads/apache-activemq-5.16.3//data/activemq.pid'
> INFO: Removing /home/hakjo/Downloads/apache-activemq-5.16.3//data/activemq.pid
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)