Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Feb 2016 10:48:25 +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: r408713 - in head/net/rabbitmq: . files
Message-ID:  <201602121048.u1CAmP1D049023@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olgeni
Date: Fri Feb 12 10:48:25 2016
New Revision: 408713
URL: https://svnweb.freebsd.org/changeset/ports/408713

Log:
  Make sure that /var/log/rabbitmq has the correct owner.

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

Modified: head/net/rabbitmq/Makefile
==============================================================================
--- head/net/rabbitmq/Makefile	Fri Feb 12 10:21:29 2016	(r408712)
+++ head/net/rabbitmq/Makefile	Fri Feb 12 10:48:25 2016	(r408713)
@@ -3,7 +3,7 @@
 
 PORTNAME=	rabbitmq
 PORTVERSION=	3.5.7
-PORTREVISION=	1
+PORTREVISION=	2
 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	Fri Feb 12 10:21:29 2016	(r408712)
+++ head/net/rabbitmq/files/rabbitmq.in	Fri Feb 12 10:48:25 2016	(r408713)
@@ -34,6 +34,7 @@ status_cmd="su -m ${rabbitmq_user} -c 's
 extra_commands="rotate_logs status"
 
 export RABBITMQ_HOME=/var/db/${name}
+export RABBITMQ_LOGDIR=/var/log/${name}
 
 # Prevent conflicts with amqp_client and rabbit_common applications that
 # may be installed in ERL_LIBS.
@@ -47,6 +48,10 @@ rabbitmq_start()
 		chown -R ${rabbitmq_user}:${rabbitmq_user} ${RABBITMQ_HOME}
 	fi
 
+	if [ -d ${RABBITMQ_LOGDIR} ]; then
+		chown -R ${rabbitmq_user}:${rabbitmq_user} ${RABBITMQ_LOGDIR}
+	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?201602121048.u1CAmP1D049023>