Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Apr 2016 15:12:32 +0000 (UTC)
From:      Jimmy Olgeni <olgeni@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r413880 - in head/net/rabbitmq: . files
Message-ID:  <201604231512.u3NFCWmt011623@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olgeni
Date: Sat Apr 23 15:12:32 2016
New Revision: 413880
URL: https://svnweb.freebsd.org/changeset/ports/413880

Log:
  Make sure that the Erlang cookie file has mode 600 before
  starting, else RabbitMQ will not run.
  
  MFH:		2016Q2

Modified:
  head/net/rabbitmq/Makefile
  head/net/rabbitmq/files/rabbitmq.in

Modified: head/net/rabbitmq/Makefile
==============================================================================
--- head/net/rabbitmq/Makefile	Sat Apr 23 15:08:18 2016	(r413879)
+++ head/net/rabbitmq/Makefile	Sat Apr 23 15:12:32 2016	(r413880)
@@ -3,6 +3,7 @@
 
 PORTNAME=	rabbitmq
 PORTVERSION=	3.6.1
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	http://www.rabbitmq.com/releases/rabbitmq-server/v${PORTVERSION}/
 DISTNAME=	${PORTNAME}-server-${PORTVERSION}

Modified: head/net/rabbitmq/files/rabbitmq.in
==============================================================================
--- head/net/rabbitmq/files/rabbitmq.in	Sat Apr 23 15:08:18 2016	(r413879)
+++ head/net/rabbitmq/files/rabbitmq.in	Sat Apr 23 15:12:32 2016	(r413880)
@@ -52,6 +52,10 @@ rabbitmq_start()
 		chown -R ${rabbitmq_user}:${rabbitmq_user} ${RABBITMQ_LOGDIR}
 	fi
 
+	if [ -f ${RABBITMQ_HOME}/.erlang.cookie ]; then
+		chmod 600 ${RABBITMQ_HOME}/.erlang.cookie
+	fi
+
 	env HOME=${RABBITMQ_HOME} daemon -c -f -u ${rabbitmq_user} -p ${pidfile} -P ${daemon_pidfile} ${rabbitmq_server}
 	debug "Running: rabbitmqctl wait ${pidfile}"
 	${rabbitmq_ctl} wait ${pidfile} >/dev/null 2>&1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604231512.u3NFCWmt011623>