Hi Thomas,

Thanks for the report.

On Thu, Apr 21, 2011 at 12:10:29PM +0200, Thomas Pöhler wrote:
> There are 4 default/config files which are referenced:
> 
> /etc/default/rabbitmq

This no longer exists.

> /etc/rabbitmq/rabbitmq.conf

This is an "old" location for the following.

> /etc/rabbitmq/rabbitmq-env.conf
> 
> And in "/usr/lib/rabbitmq/bin/rabbitmq-server" additionally a
> CONFIG_FILE is specified.

Yes, but the CONFIG_FILE refers only to /etc/rabbitmq/rabbitmq.config

Basically, there are really only two config files:

1. A shell-style file, with default location
/etc/rabbitmq/rabbitmq-env.conf

2. An erlang term file, with default location
/etc/rabbitmq/rabbitmq.config

The latter is, for various erlang reasons, referred to without the
extension.

Whilst /etc/default/rabbitmq did used to exist, it doesn't seem to now -
indeed I can only find a reference to it in postrm, and indeed

dpkg -c /home/matthew/Download/rabbitmq-server_2.4.1-1_all.deb \
   | grep default

returns no results.

> The Configfile is sourced this way (correct me if im wrong)
> 
> /etc/init.d/rabbitmq-server -> /usr/lib/rabbitmq/bin/rabbitmq-server
> -> /usr/lib/rabbitmq/bin/rabbitmq-env ->
> /etc/rabbitmq/rabbitmq-env.conf

Well that'll refer to (1) above, but yes, that looks right to me.

> The Problem about this is, that I can't define INIT_LOG_DIR in a
> defaults/config file because this must be set in roots environment,
> but start_rabbitmq() is run in a new session, so setting INIT_LOG_DIR
> in /etc/rabbitmq/rabbitmq-env.conf is not recognized.
> 
> The only way right now is to edit the init script, which is set back
> to default with every update :(

Indeed. The problem can be put a bit more concisely as: the
rabbitmq-env.conf file is not sourced prior to the call to
setsid sh -c "$DAEMON > ${INIT_LOG_DIR}/startup_log \
            2> ${INIT_LOG_DIR}/startup_err" &
in the init script.

To be fair, we never say that you should be able to configure the
INIT_LOG_DIR in the rabbitmq-env.conf file, although equally,
http://www.rabbitmq.com/man/rabbitmq-env.conf.5.man.html gets no where
near documenting everything that can be configured in the -env.conf
file.

I agree this is a bug though and I shall file a bug in our own bugzilla
to try and get this fixed.

Best wishes,

Matthew

Attachment: signature.asc
Description: Digital signature

Reply via email to