aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/rabbitmq/Makefile1
-rw-r--r--net/rabbitmq/files/rabbitmq.in4
2 files changed, 5 insertions, 0 deletions
diff --git a/net/rabbitmq/Makefile b/net/rabbitmq/Makefile
index 9110bfa9524b..3a65f2b6e095 100644
--- a/net/rabbitmq/Makefile
+++ b/net/rabbitmq/Makefile
@@ -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}
diff --git a/net/rabbitmq/files/rabbitmq.in b/net/rabbitmq/files/rabbitmq.in
index f1fbada3cd70..f275b6153614 100644
--- a/net/rabbitmq/files/rabbitmq.in
+++ b/net/rabbitmq/files/rabbitmq.in
@@ -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