Skip to content

Instantly share code, notes, and snippets.

@iconara
Created February 19, 2014 09:59
Show Gist options
  • Save iconara/9089112 to your computer and use it in GitHub Desktop.
Save iconara/9089112 to your computer and use it in GitHub Desktop.
ZooKeeper Homebrew launchd config
<?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>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>
<string>homebrew.mxcl.zookeeper</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/zkServer</string>
<string>start-foreground</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/usr/local/var/run/zookeeper</string>
<key>StandardErrorPath</key>
<string>/usr/local/var/log/zookeeper.err</string>
<key>StandardOutPath</key>
<string>/usr/local/var/log/zookeeper.out</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment