Skip to content

Instantly share code, notes, and snippets.

@pdscopes
Created August 11, 2016 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdscopes/d08856b29c6c654ca390ed5cc72df58a to your computer and use it in GitHub Desktop.
Save pdscopes/d08856b29c6c654ca390ed5cc72df58a to your computer and use it in GitHub Desktop.
Homebrew Rabbitmq plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.rabbitmq</string>
<key>Program</key>
<string>/usr/local/opt/rabbitmq/sbin/rabbitmq-server</string>
<key>RunAtLoad</key>
<true/>
<key>StandardOutPath</key>
<string>/usr/local/var/log/rabbitmq/rabbitmq.log</string>
<key>StandardErrorPath</key>
<string>/usr/local/var/log/rabbitmq/rabbitmq_err.log</string>
<key>EnvironmentVariables</key>
<dict>
<key>HOME</key>
<string>/usr/local/var/lib/rabbitmq</string>
<!-- need erl in the path -->
<key>PATH</key>
<string>/usr/local/sbin:/usr/bin:/bin:/usr/local/bin</string>
<!-- specify the path to the rabbitmq-env.conf file -->
<key>CONF_ENV_FILE</key>
<string>/usr/local/etc/rabbitmq/rabbitmq-env.conf</string>
</dict>
</dict>
</plist>
@pdscopes
Copy link
Author

Added StandoutOutPath and StandardErrorPath to allow to see the logs, can be removed if not wanted.

@pdscopes
Copy link
Author

Added HOME for when running plist as a /Library/LaunchDaemons.
Remove for ~/Library/LaunchAgents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment