openbsd-ports/net/rabbitmq/patches/patch-scripts_rabbitmqctl
sthen 0f5aa34593 update RabbitMQ to 2.7.1
- disable unnecessary use of nmap/lsof
- from maintainer Piotr Sikora with small tweaks from me
2012-01-13 20:54:25 +00:00

19 lines
612 B
Plaintext

$OpenBSD: patch-scripts_rabbitmqctl,v 1.4 2012/01/13 20:54:25 sthen Exp $
--- scripts/rabbitmqctl.orig Fri Dec 16 12:24:15 2011
+++ scripts/rabbitmqctl Fri Jan 13 20:23:03 2012
@@ -20,7 +20,7 @@
[ "x" = "x$RABBITMQ_NODENAME" ] && RABBITMQ_NODENAME=${NODENAME}
[ "x" = "x$RABBITMQ_CTL_ERL_ARGS" ] && RABBITMQ_CTL_ERL_ARGS=${CTL_ERL_ARGS}
-exec erl \
+su -s /bin/sh -l ${RABBITUSER} -c "erl \
-pa "${RABBITMQ_HOME}/ebin" \
-noinput \
-hidden \
@@ -28,4 +28,4 @@ exec erl \
-sname rabbitmqctl$$ \
-s rabbit_control \
-nodename $RABBITMQ_NODENAME \
- -extra "$@"
+ -extra $*"