<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Thanks Jason.</div><div><br></div><div>That's helpful, but in my admittedly limited knowledge, I don't believe that it's as simple as that. In particular I don't understand how handle files being installed with rabbitmq as the owner.</div><div><br></div><div>A little more context that I forgot to mention earlier:</div><ul><li>I need to cluster multiple nodes so explicitly specifying the cookie is necessary so they're synced. Also, specifying the cookie via an environment variable is preferred to having an additional cookie file that I need to copy to multiple machines.</li><li>I need to be able to launch everything from scratch via my own script file (which will be on all nodes.)</li></ul><div>My current thinking is that my startup script will set some RABBITMQ environment variables (RABBITMQ_CONFIG_FILE, RABBITMQ_SERVER_START_ARGS, RABBITMQ_CTL_ERL_ARGS,). The script will then directly run rabbit-server in /usr/lib/rabbitmq/bin. Also, RABBITMQ_CONFIG_FILE will point to the rabbitmq.config file that I've dropped on all nodes to set up auto clustering.)</div><div><br></div><div>Thanks again,</div><div><br></div><div>Matt</div><div><br></div><div>On 12/19/11 2:31 PM, "Jason J. W. Williams" <<a href="mailto:jasonjwwilliams@gmail.com">jasonjwwilliams@gmail.com</a>> wrote:</div><div><br></div><blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div>Hi Matt,</div><div><br></div><div>This should do it on Ubuntu:</div><div><br></div><div>sudo -H -u <user> /opt/rabbitmq-server/sbin/rabbitmq-server</div><div><br></div><div>The Erlang process needs to find the Erlang cookie and will check the</div><div>home directory of the executing user. You can also specify the</div><div>explicit location of the Erlang cookie in the RabbitMQ arguments, but</div><div>we find using the HOME environment simpler.</div><div><br></div><div>-J</div><div><br></div><div>On Mon, Dec 19, 2011 at 2:58 PM, Matt Pietrek <<a href="mailto:mpietrek@skytap.com">mpietrek@skytap.com</a>> wrote:</div><blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div> We have a production environment where all of our services run in a special,</div><div> non-root account an an Ubuntu 10.04 environment. I'm experimenting with how</div><div> to make RabbitMQ 2.7 run in this special account, rather than as the</div><div> "rabbitmq" user, and not having much luck.</div><div><br></div><div> Extensive searching of the mailing list makes me think I'm close, but I</div><div> suspect I'm missing something fundamental.</div><div><br></div><div> I believe part of the answer involves explicitly setting the "-cookie"</div><div> option in RABBITMQ_SERVER_START_ARGS and RABBITMQ_CTL_ERL_ARGS environment</div><div> variables.</div><div> I also suspect that the answer also involves running the "low level" scripts</div><div> in /usr/lib/rabbitmq/bin/, rather than the scripts in /usr/sbin/.</div><div> Further, I suspect that some directories may need to have their ownership</div><div> and/or attributes changed to something other than "rabbitmq".</div><div><br></div><div> So what I'm looking for is a list of what exactly I need to do, both at</div><div> launch time, as well as possibly at install time.</div><div><br></div><div> FWIW, we need to launch rabbitmq-server ourselves, rather than having it</div><div> auto start on boot. I know how to accomplish this, but it might be useful</div><div> context when deciding how to approach the above.</div><div><br></div><div> Thanks much,</div><div><br></div><div> Matt</div><div><br></div><div><br></div><div><br></div><div> _______________________________________________</div><div> rabbitmq-discuss mailing list</div><div> <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a></div><div> <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a></div><div><br></div></blockquote><div><br></div></blockquote></body></html>