Skip to content

Instantly share code, notes, and snippets.

@derekharmel
Created July 16, 2013 16:03
Show Gist options
  • Save derekharmel/6010084 to your computer and use it in GitHub Desktop.
Save derekharmel/6010084 to your computer and use it in GitHub Desktop.
zookeeper and kafka launch agents
> pwd
/Users/dharmel/Library/LaunchAgents
> more kafka.plist
<?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>kafka</string>
<key>Program</key>
<string>/usr/local/bin/kafka-start</string>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/usr/local/kafka_install/kafka</string>
</dict>
</plist>
> more zookeeper.plist
<?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>zookeeper</string>
<key>Program</key>
<string>/usr/local/bin/zookeeper-start</string>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/usr/local/kafka_install/kafka</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment