You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Fabrice Triboix <fa...@armedia.com> on 2021/06/09 09:15:44 UTC

Questions about the `bin/env` file

Hello everyone,

When I unpack, say, https://archive.apache.org/dist/activemq/5.16.2/apache-activemq-5.16.2-bin.tar.gz, I can see in the bin​ directory that there is an env​ file.

Could anyone please explain to me what is the purpose of this file and how it is used by ActiveMQ? Also, it is possible to move it elsewhere?

Many thanks,

  Fabrice


Re: Questions about the `bin/env` file

Posted by Fabrice Triboix <fa...@armedia.com>.
Hi Domenico,

Thanks for a lot for these details!

Best regards,

  Fabrice

________________________________
From: Domenico Francesco Bruscino <br...@gmail.com>
Sent: 09 June 2021 13:06
To: users@activemq.apache.org <us...@activemq.apache.org>
Subject: Re: Questions about the `bin/env` file

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.


Hi Fabrice,

the `env` script in the bin folder contains all default configuration
variables[1].

The init script scans the following locations for configurations in the
following order:
/etc/default/activemq
$HOME/.activemqrc
$INSTALLDIR/apache-activemq-/bin/env

[1]
https://activemq.apache.org/unix-shell-script.html#configuration-file-of-the-init-script

Regards,
Domenico

On Wed, 9 Jun 2021 at 11:16, Fabrice Triboix <fa...@armedia.com>
wrote:

> Hello everyone,
>
> When I unpack, say,
> https://archive.apache.org/dist/activemq/5.16.2/apache-activemq-5.16.2-bin.tar.gz,
> I can see in the bin​ directory that there is an env​ file.
>
> Could anyone please explain to me what is the purpose of this file and how
> it is used by ActiveMQ? Also, it is possible to move it elsewhere?
>
> Many thanks,
>
>   Fabrice
>
>

Re: Questions about the `bin/env` file

Posted by Domenico Francesco Bruscino <br...@gmail.com>.
Hi Fabrice,

the `env` script in the bin folder contains all default configuration
variables[1].

The init script scans the following locations for configurations in the
following order:
/etc/default/activemq
$HOME/.activemqrc
$INSTALLDIR/apache-activemq-/bin/env

[1]
https://activemq.apache.org/unix-shell-script.html#configuration-file-of-the-init-script

Regards,
Domenico

On Wed, 9 Jun 2021 at 11:16, Fabrice Triboix <fa...@armedia.com>
wrote:

> Hello everyone,
>
> When I unpack, say,
> https://archive.apache.org/dist/activemq/5.16.2/apache-activemq-5.16.2-bin.tar.gz,
> I can see in the bin​ directory that there is an env​ file.
>
> Could anyone please explain to me what is the purpose of this file and how
> it is used by ActiveMQ? Also, it is possible to move it elsewhere?
>
> Many thanks,
>
>   Fabrice
>
>