[Bug 878600] Re: 'service start rabbitmq-server' does not fully detach from parent
Scott Moser
smoser at canonical.com
Thu Oct 20 01:04:13 UTC 2011
Once rabbitmq-server had been installed, I can reproduce this with:
$ ssh $host "sudo service rabbitmq-server start"
Ie, no 'tee' is necessary.
This, however, does not exhibit the hang:
$ sudo service rabbitmq-server start >out 2>&1"
This patch seems to fix it for me:
--- /etc/init.d/rabbitmq-server.dist 2011-10-20 01:01:07.852757569 +0000
+++ /etc/init.d/rabbitmq-server 2011-10-20 01:02:32.204758210 +0000
@@ -40,8 +40,8 @@
else
RETVAL=0
set +e
- setsid sh -c "$DAEMON > ${INIT_LOG_DIR}/startup_log \
- 2> ${INIT_LOG_DIR}/startup_err" &
+ setsid sh -c "exec $DAEMON" > "${INIT_LOG_DIR}/startup_log" \
+ 2> "${INIT_LOG_DIR}/startup_err" &
$CONTROL wait >/dev/null 2>&1
RETVAL=$?
set -e
** Changed in: rabbitmq-server (Ubuntu)
Importance: Undecided => Medium
** Changed in: rabbitmq-server (Ubuntu)
Status: New => Triaged
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to rabbitmq-server in Ubuntu.
https://bugs.launchpad.net/bugs/878600
Title:
'service start rabbitmq-server' does not fully detach from parent
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rabbitmq-server/+bug/878600/+subscriptions
More information about the Ubuntu-server-bugs
mailing list