Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-8411

ActiveMQ does not stop if ACTIVEMQ_USER is set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 5.16.3
    • None
    • Broker
    • None
    • Platform: Linux - Red Hat Enterprise Linux release 8.4 (Ootpa)

    • Patch Available

    Description

      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:

      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')
      

      Output from stop command:

      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
      

      Attachments

        1. amq-8411.patch
          0.4 kB
          Håkan Johansson

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              hakanj Håkan Johansson
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: