diff options
author | olgeni <olgeni@FreeBSD.org> | 2016-04-23 23:12:32 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2016-04-23 23:12:32 +0800 |
commit | 53e4d97dc8df12fbce7e5bbbfe4c8ce9c494a1ee (patch) | |
tree | 2b63928ef91ac3b592e6d5f77a3ef2bf44475623 /net/rabbitmq | |
parent | 7597141bed95d8b2fc8ab97dada31b533b339bc2 (diff) | |
download | freebsd-ports-gnome-53e4d97dc8df12fbce7e5bbbfe4c8ce9c494a1ee.tar.gz freebsd-ports-gnome-53e4d97dc8df12fbce7e5bbbfe4c8ce9c494a1ee.tar.zst freebsd-ports-gnome-53e4d97dc8df12fbce7e5bbbfe4c8ce9c494a1ee.zip |
Make sure that the Erlang cookie file has mode 600 before
starting, else RabbitMQ will not run.
MFH: 2016Q2
Diffstat (limited to 'net/rabbitmq')
-rw-r--r-- | net/rabbitmq/Makefile | 1 | ||||
-rw-r--r-- | net/rabbitmq/files/rabbitmq.in | 4 |
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 |