Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2016 13:03:48 +0000 (UTC)
From:      Jimmy Olgeni <olgeni@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r409662 - in branches/2016Q1/net/rabbitmq: . files
Message-ID:  <201602271303.u1RD3muD093009@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olgeni
Date: Sat Feb 27 13:03:48 2016
New Revision: 409662
URL: https://svnweb.freebsd.org/changeset/ports/409662

Log:
  MFH: r408713
  
  Make sure that /var/log/rabbitmq has the correct owner.
  
  Approved by:	ports-secteam (miwi)

Modified:
  branches/2016Q1/net/rabbitmq/Makefile
  branches/2016Q1/net/rabbitmq/files/rabbitmq.in
Directory Properties:
  branches/2016Q1/   (props changed)

Modified: branches/2016Q1/net/rabbitmq/Makefile
==============================================================================
--- branches/2016Q1/net/rabbitmq/Makefile	Sat Feb 27 12:56:24 2016	(r409661)
+++ branches/2016Q1/net/rabbitmq/Makefile	Sat Feb 27 13:03:48 2016	(r409662)
@@ -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: branches/2016Q1/net/rabbitmq/files/rabbitmq.in
==============================================================================
--- branches/2016Q1/net/rabbitmq/files/rabbitmq.in	Sat Feb 27 12:56:24 2016	(r409661)
+++ branches/2016Q1/net/rabbitmq/files/rabbitmq.in	Sat Feb 27 13:03:48 2016	(r409662)
@@ -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?201602271303.u1RD3muD093009>