<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div><div><div>Hi,</div><div><br></div><div>I have questions about the init script. I'm working with the version here:</div><div><br></div><div><a href="http://hg.rabbitmq.com/rabbitmq-server/file/rabbitmq_v2_4_0/packaging/common/rabbitmq-server.init">http://hg.rabbitmq.com/rabbitmq-server/file/rabbitmq_v2_4_0/packaging/common/rabbitmq-server.init</a></div><div><br></div><div>I modified it a bit. See below. Specifically, I am curious about what this "$CONTROL wait > /dev/null 2>&1" line is. I tried running "rabbitmqctl wait" and got an error back out of rabbitmqctl. Am I missing something in my install?</div><div><br></div><div>Thanks.</div><div><br></div><div><div>--- rabbitmq-server.init.orig 2011-03-28 09:29:10.000000000 -0400</div><div>+++ rabbitmq-server.init 2011-03-28 09:32:47.000000000 -0400</div><div>@@ -16,16 +16,17 @@</div><div> # Short-Description: Enable AMQP service provided by RabbitMQ broker</div><div> ### END INIT INFO</div><div> </div><div>-PATH=/sbin:/usr/sbin:/bin:/usr/bin</div><div>+PREFIX_DIR=/opt/rabbitmq/rabbitmq-2.4.0</div><div>+PATH=${PREFIX_DIR}/sbin:/sbin:/sbin:/usr/sbin:/bin:/usr/bin</div><div> NAME=rabbitmq-server</div><div> DAEMON=/usr/sbin/${NAME}</div><div> CONTROL=/usr/sbin/rabbitmqctl</div><div> DESC=rabbitmq-server</div><div>-USER=rabbitmq</div><div>+RUNAS_USER=rabbitmq</div><div> ROTATE_SUFFIX=</div><div> INIT_LOG_DIR=/var/log/rabbitmq</div><div>-</div><div>-LOCK_FILE= # This is filled in when building packages</div><div>+HOME=/var/lib/rabbitmq</div><div>+LOCK_FILE=/var/lock/rabbitmq.pid</div><div> </div><div> test -x $DAEMON || exit 0</div><div> </div><div>@@ -41,7 +42,6 @@</div><div> set +e</div><div> setsid sh -c "$DAEMON > ${INIT_LOG_DIR}/startup_log \</div><div> 2> ${INIT_LOG_DIR}/startup_err" &</div><div>- $CONTROL wait >/dev/null 2>&1</div><div> RETVAL=$?</div><div> set -e</div><div> case "$RETVAL" in</div><div>@@ -101,7 +101,7 @@</div><div> set -e</div><div> }</div><div> </div><div>-restart_running_rabbitmq () {</div><div>+restart_running_rabbitmq() {</div><div> status_rabbitmq quiet</div><div> if [ $RETVAL = 0 ] ; then</div><div> restart_rabbitmq</div><div>@@ -116,6 +116,15 @@</div><div> start_rabbitmq</div><div> }</div><div> </div><div>+become_rabbitmq() {</div><div>+ if [ "$USER" != "$RUNAS_USER" ]; then</div><div>+ su $RUNAS_USER -c "$*"</div><div>+ exit 0;</div><div>+ fi</div><div>+}</div><div>+</div><div>+become_rabbitmq $0 $*</div><div>+</div><div> case "$1" in</div><div> start)</div><div> echo -n "Starting $DESC: "</div></div><div><br></div><div><br></div><div><br></div><div><div><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: rgb(89, 89, 89); font-family: Arial, sans-serif; ">Exact</span><span style="color: rgb(227, 108, 10); font-family: Arial, sans-serif; ">Target</span></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: rgb(31, 73, 125); ">Greg Swallow</span></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: rgb(31, 73, 125); ">System Administrator</span></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: rgb(31, 73, 125); ">Phone | 317 524-5250</span></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: rgb(31, 73, 125); ">Yahoo IM | gswallow01<o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="color: rgb(31, 73, 125); ">Email | <a href="mailto:gswallow@exacttarget.com">gswallow@exacttarget.com</a></span></p></div></div></div></div></body></html>