Skip to content

Instantly share code, notes, and snippets.

@voxxit
Created August 7, 2015 22:01
Show Gist options
  • Save voxxit/d65d8e97980ec8627ea6 to your computer and use it in GitHub Desktop.
Save voxxit/d65d8e97980ec8627ea6 to your computer and use it in GitHub Desktop.
LaunchAgent for Consul & Consul UI
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>hashicorp.consul.server</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/consul</string>
<string>agent</string>
<string>-server</string>
<string>-bootstrap-expect</string>
<string>1</string>
<string>-data-dir</string>
<string>/usr/local/var/consul</string>
<string>-config-dir</string>
<string>/usr/local/etc/consul.d</string>
<string>-ui-dir</string>
<string>/usr/local/share/consul</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>jdelsman</string>
<key>WorkingDirectory</key>
<string>/usr/local/var</string>
<key>StandardErrorPath</key>
<string>/usr/local/var/log/consul.log</string>
<key>StandardOutPath</key>
<string>/usr/local/var/log/consul.log</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment