Matthew,<div><br></div><div>Well, I think that I have a problem I understand very well the problems with environment, I try to use global environment but sudo ignore it... I&#39;m trying to understand why.</div><div><br></div>
<div>About rabbit configuration,�I didn&#39;t fond /etc/rabbitmq.conf it&#39;s installed by default ?</div><div><br></div><div><br></div><div><div><br><div class="gmail_quote">On Tue, Jan 26, 2010 at 11:05 AM, Matthew Sackman <span dir="ltr">&lt;<a href="mailto:matthew@lshift.net">matthew@lshift.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Gustavo,<br>
<br>
Actually, further testing reveals it&#39;s a bit more subtle.<br>
<br>
sudo, by default, resets the environment when changing user, unless you<br>
give it the -E option.<br>
<br>
su, by default, although it has a --preserve-environment option, will<br>
copy over all the RABBITMQ_* environment settings when changing user.<br>
<br>
I wouldn&#39;t be surprised if OS X decides to do everything differently<br>
again...<br>
<br>
Thus if you repeat my previous foo.sh test, but use su instead of sudo,<br>
you will get &quot;wibble&quot; out.<br>
<br>
Our scripts use &quot;su&quot;, not &quot;sudo&quot; and so *should* preserve the<br>
environment.<br>
<br>
However, that aside, I&#39;d still suggest that putting<br>
NODENAME=rabbit@Nefertiti in your /etc/rabbitmq/rabbitmq.conf - it is on<br>
the whole safer than using env vars. I do hope your machine can resolve<br>
Nefertiti<br>
<div><div></div><div class="h5"><br>
Matthew<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="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div></div>