<div dir="ltr">Depends how you started it: Either /sbin/service/rabbitmq-server stop or /etc/init.d/.<div><br></div><div style>Of course 'kill' will stop it, but the cleanliness of doing the former is preferable in non-emergency circumstances.</div>
<div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 1, 2013 at 6:26 AM, srd <span dir="ltr"><<a href="mailto:srd@duneram.com" target="_blank">srd@duneram.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you for your help. I will give this a try.<br>
<br>
I've been starting it wrong all this time.<br>
<br>
what is the best way to stop the server? up until now I have found no good way to stop it except<br>
<br>
ps -efwww | grep rabbit<br>
and then with that kill off the 4-6 associated jobs.<br>
<br>
Dave<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
> -------Original Message-------<br>
> From: Tim Watson <<a href="mailto:tim@rabbitmq.com">tim@rabbitmq.com</a>><br>
> To: srd <<a href="mailto:srd@duneram.com">srd@duneram.com</a>>, Discussions about RabbitMQ <<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a>><br>
> Subject: Re: [rabbitmq-discuss] another question on cookies version 3.0.4<br>
> Sent: 01 May '13 13:21<br>
><br>
> Hi,<br>
><br>
> On 1 May 2013, at 14:15, srd wrote:<br>
><br>
> > so my questions are:<br>
> > 1) How does one normally start the server?<br>
><br>
> Depending on the platform, either /sbin/service rabbitmq-server start or via /etc/init.d/.<br>
><br>
> > 2) my reason for wanting to do cookies is I wanted to setup a multi node cluster (different servers)<br>
> > If I start a server (no parameters) on each server the cookie hash is different.<br>
><br>
> You need to ensure that all the cookies are the same. You can do this by placing the .erlang.cookie file in the /home/rabbitmq directory on each server.<br>
><br>
> > 3) I have looked at the clustering guide but haven't succeeded in a setup using it. How does one normally synchronize the cookies across servers?<br>
><br>
> That's up to you - rabbit doesn't provide anything out of the box to do this.<br>
><br>
> > 4) where is the cookie file stored? I found one on the rabbitmq user's root directory. Is that where it is stored?<br>
><br>
> That's correct.<br>
><br>
> > 5) If I have to set a cookie value, is there a config file where it can be set (or env variable?) and what is the syntax to set it?<br>
> ><br>
><br>
> I would recommend just using the cookie stored in the rabbitmq user's home directory.<br>
><br>
> Cheers,<br>
> Tim<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>
</div></div></blockquote></div><br></div>