Commit graph

12 commits

Author SHA1 Message Date
Jimmy Olgeni
0a105e1045 Add a separate "wait" command to the startup script, to be used
with automated deployment systems to ensure that RabbitMQ is actually
available.

The pid file may exist, but it can still be empty when $rabbitmq_ctl
is executed. In this case the script would not wait for anything
and produce some weird output on the console.

PR:		ports/185962 (follow up)
2014-02-06 15:00:25 +00:00
Jimmy Olgeni
a62402190b - Export HOME before starting RabbitMQ node.
- After starting, wait for RabbitMQ to be available.

PR:		ports/185962
Submitted by:	Anes Mukhametov <anes@anes.su>
2014-01-21 15:40:07 +00:00
Jimmy Olgeni
43ce726eae Reset ERL_LIBS before running RabbitMQ.
ERL_LIBS was inherited from the current environment, and it may
contain paths to older versions of amqp_client, which may not be
compatible with the current RabbitMQ management plugin.

As a result, RabbitMQ would not start when the management plugin was
enabled, with this error:

{could_not_start,amqp_client,
 {{supervisor_data,{invalid_strategy,simple_one_for_one_terminate}},
  {amqp_client,start,[normal,[]]}}}
2014-01-10 09:29:04 +00:00
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Chris Rees
50b021969e Make rabbitmq wait for pid after stopping; stops restarting problems.
PR:		ports/160027
Submitted by:	Nicolas Szalay <nico@rottenbytes.info>
Approved by:	Phillip Neumann <pneumann@gmail.com> (maintainer)
2011-08-31 12:36:27 +00:00
Steve Wills
3e53706723 - Update to 2.5.1
PR:		ports/159364
Submitted by:	Andrew <andrew@flarn.com>
Approved by:	Phillip Neumann <pneumann@gmail.com> (maintainer) (with changes)
2011-08-10 19:00:33 +00:00
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Bruce M Simpson
0f22d70819 fix rotate_logs and status sub-commands in rc.d script;
the shell functions use the wrong quoting.
2009-07-04 12:00:11 +00:00
Martin Wilke
e0d95c7757 - Update to 1.5.0
PR:		129751
Submitted by:	"Phillip N." <pneumann@gmail.com> (maintainer)
2008-12-30 10:57:17 +00:00
Wesley Shields
286741f08d - Add UID and GID entries for net/rabbitmq.
- Convince RC script to use rabbitmq user.

PR:		ports/128108
Submitted by:	Nick Barkas <snb@threerings.net>
Approved by:	Phillip N. <pneumann@gmail.com> (maintainer)
2008-10-29 01:01:34 +00:00
Dmitry Marakasov
feba621254 - Change rabbitmq to rabbitmq_server in TARGET_DIR to match rabbitmq install docs recommendation
- Fix rcscript
- Create var/etc dirs on package installation and correctly dirrmtry them on deinstallation

PR:		127033
Submitted by:	Barry Pederson <bp at barryp dot org>
Approved by:	"Phillip N." <pneumann at gmail dot com> (maintainer)
2008-09-03 15:51:10 +00:00
Vanilla I. Shu
29a7f9f706 Add rabbitmq 1.3.0, rabbitMQ is an implementation of AMQP.
PR:		ports/125553
Submitted by:	Phillip Neumann <pneumann at gmail.com>
2008-07-14 01:51:37 +00:00