<div dir="ltr">Hi,<div><br></div><div>If I read the source code correctly, rabbitmq-server will accept arguments that will be sent directly to erl, so you can use -setcookie there.</div><div><br></div><div style>On the other hand rabbitmqctl expects an ENV var called�RABBITMQ_CTL_ERL_ARGS, so I guess you could pass -setcookie there.</div>
<div style><br></div><div style>And no, -setcookie won&#39;t change the value of .erlang_cookie; it&#39;s used to�override�it.</div><div style><br></div><div style>Regards,</div><div style><br></div><div style>Alvaro</div>
<div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 22, 2013 at 8:54 PM, srd <span dir="ltr">&lt;<a href="mailto:srd@duneram.com" target="_blank">srd@duneram.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I&#39;m using rabbit 3.0.4 on a centos system.<br>
<br>
Suppose I have a cluster I want to stand up and want to make it easy without having to copy the cookie file to all the nodes.<br>
<br>
If I run as rabbitmq the command: rabbitmq-server -setcookie pigcat &amp;<br>
It appears to start fine however I have noticed a couple of things.<br>
the .erlang_cookie doesn&#39;t update.<br>
<br>
If I later run rabbitmqctl cluster_status �I can&#39;t to communicate with the node because I cannot set the cookie to my desired cookie.<br>
<br>
So the question is, how does one effectively maintain a cluster using the -setcookie option?<br>
<br>
I tried looking at the rabbitmqctl and rabbitmq-server script files but none of them hit the erl application directly. �In the docs it briefly mentions one could modify the scripts so that erl is started with a specific cookie.<br>

I&#39;d like to be able to do this but do not see where it would be that I need to augment so I can ensure the cookie is always set to a known value when accessing the node.<br>
<br>
Does anyone have an example of how / what scripts need to be modified?<br>
<br>
Thanks in advance.<br>
<br>
<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>
</blockquote></div><br></div>