Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-4147

artemis.profile: use variables consistently

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Configuration
    • None

    Description

      The generated artemis.profile starts with a section of variables:

      ARTEMIS_HOME='/tmp/apache-artemis-2.27.1'
      ARTEMIS_INSTANCE='/tmp/apache-artemis-2.27.1/artemis'
      ARTEMIS_DATA_DIR='/tmp/apache-artemis-2.27.1/artemis/data'
      ARTEMIS_ETC_DIR='/tmp/apache-artemis-2.27.1/artemis/etc'
      ARTEMIS_OOME_DUMP='/tmp/apache-artemis-2.27.1/artemis/log/oom_dump.hprof
      ARTEMIS_INSTANCE_URI='file:/tmp/apache-artemis-2.27.1/artemis/'
      ARTEMIS_INSTANCE_ETC_URI='file:/tmp/apache-artemis-2.27.1/artemis/etc/'
      

      Basically none of these variables is being reused so whenever I need to change either ARTEMIS_HOME or ARTEMIS_INSTANCE I need to change each and every variable.

      Instead, I propose to re-use ARTEMIS_HOME and ARTEMIS_INSTANCE so one needs to change only in one place, e.g.:

      ARTEMIS_HOME='/tmp/apache-artemis-2.27.1'
      ARTEMIS_INSTANCE='$ARTEMIS_HOME/artemis'
      ARTEMIS_DATA_DIR='$ARTEMIS_INSTANCE/data'
      ARTEMIS_ETC_DIR='$ARTEMIS_INSTANCE/etc'
      ARTEMIS_OOME_DUMP='$ARTEMIS_INSTANCE/log/oom_dump.hprof
      ARTEMIS_INSTANCE_URI='file:$ARTEMIS_INSTANCE/'
      ARTEMIS_INSTANCE_ETC_URI='file:$ARTEMIS_INSTANCE/etc/'
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            2020-11-12 arne anka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: