Skip to content

Instantly share code, notes, and snippets.

@romanr
Created July 11, 2012 09:15
Show Gist options
  • Save romanr/3089219 to your computer and use it in GitHub Desktop.
Save romanr/3089219 to your computer and use it in GitHub Desktop.
Homebrew activemq launchDaemon script
<?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>com.apache.activemq</string>
<key>WorkingDirectory</key>
<string>/usr/local/Cellar/activemq/5.5.1/libexec</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/daemondo</string>
<string>--label=activemq</string>
<string>--start-cmd</string>
<string>/usr/local/Cellar/activemq/5.5.1/libexec/bin/macosx/activemq</string>
<string>start</string>
<string>;</string>
<string>--stop-cmd</string>
<string>/usr/local/Cellar/activemq/5.5.1/libexec/bin/macosx/activemq</string>
<string>stop</string>
<string>;</string>
<string>--restart-cmd</string>
<string>/usr/local/Cellar/activemq/5.5.1/libexec/bin/macosx/activemq</string>
<string>restart</string>
<string>;</string>
<string>--pid=none</string>
</array>
</dict>
</plist>
@romanr
Copy link
Author

romanr commented Jul 11, 2012

sudo launchctl load /Library/LaunchDaemons/com.apache.activemq.plist
sudo launchctl start com.apache.activemq

/usr/local/Cellar/activemq/5.5.1/libexec/bin/macosx/activemq start

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