Hi,<div><br></div><div>The problem is simple: consolekit thinks rabbitmq is a real user using the computer. Then the login manager (lightdm) does not allow the user to shut down the computer.</div><div><br></div><div>I've fixed this on my computers by changing /usr/sbin/rabbitmq-server to start rabbitmq with start-stop-daemon instead of su:</div>
<div><br></div><div><br></div><div><font face="'courier new', monospace">.. snip</font></div><div><div><font face="'courier new', monospace">if [ `id -u` = `id -u rabbitmq` -o "$SCRIPT" = "rabbitmq-plugins" ] ; then</font></div>
<div><font face="'courier new', monospace"> /usr/lib/rabbitmq/bin/${SCRIPT} "$@"</font></div><div><font face="'courier new', monospace">elif [ `id -u` = 0 ] ; then</font></div><div><font face="'courier new', monospace"> # don't use su, use start-stop-daemon instead</font></div>
<div><font face="'courier new', monospace"> #su rabbitmq -s /bin/sh -c "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}"</font></div><div><font face="'courier new', monospace"> start-stop-daemon \</font></div>
<div><font face="'courier new', monospace"> --chuid rabbitmq \</font></div><div><font face="'courier new', monospace"> --start \</font></div><div><font face="'courier new', monospace"> --pidfile $RABBITMQ_PID_FILE \</font></div>
<div><font face="'courier new', monospace"> --exec /bin/sh \</font></div><div><font face="'courier new', monospace"> -- /usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}</font></div><div><font face="'courier new', monospace">else</font></div>
</div><div><font face="'courier new', monospace">.. snap</font></div><div><br></div><div>I'm however not 100% sure this fix is globally acceptable. Any thoughts Simon?</div><div><br></div><div><br></div><div> Sampo</div>
<div><br><br><div class="gmail_quote">On Mon, Feb 6, 2012 at 1:29 AM, Andrew Del Preore <span dir="ltr"><<a href="mailto:adelpreore@gmail.com">adelpreore@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>The version Rabbit MQ Available through Ubuntu (Synaptic) is 2.5.0-1 for 11.10.<br></div><div><br></div>After investigating my shutdown issues (and trying various acpi options) I stumbled across this thread.<div>After uninstalling RabbitMQ and force-booting again -> I can restart or shutdown as normal. (I've had this for a little awhile)</div>
<div><br></div><div>I don't know if this helps - but x64 Ubuntu 11.10 Desktop (kernel 3.0.0.16) (ASUS laptop G73J)</div><div><br></div><div>My WAG (Wild A.. Guess) on this would be shutdown signal misinterpreted as process-kill which causes a rabbit restart? (hang for us).</div>
<div><br></div><div>Not currently using rabbitmq in this environment so I'm it leaving uninstalled for now (also assuming what Sampo is saying about 2.6.1/2.7.0 is true). </div><div><br></div><div>I'll be watching this thread for any updates...</div>
<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span style="background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:13px">Sampo Savolainen</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">Head of R&D, Spatineo Oy</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"><a href="mailto:sampo.savolainen@spatineo.com" target="_blank">sampo.savolainen@spatineo.com</a></span></span></div>
<div><span style="background-color:rgb(255,255,255)"><font face="arial, sans-serif">+358-407555649</font><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">Hiilikatu 3, fi-00180 Helsinki, Finland</span><br style="font-family:arial,sans-serif;font-size:13px">
<a href="http://www.spatineo.com/" style="font-family:arial,sans-serif;font-size:13px" target="_blank">www.spatineo.com</a><span style="font-family:arial,sans-serif;font-size:13px">, </span><a href="http://twitter.com/#!/spatineo" style="font-family:arial,sans-serif;font-size:13px" target="_blank">twitter.com/#!/spatineo</a><br style="font-family:arial,sans-serif;font-size:13px">
<a href="http://www.linkedin.com/company/spatineo-inc" style="font-family:arial,sans-serif;font-size:13px" target="_blank">www.linkedin.com/company/spatineo-inc</a></span></div><br>
</div>