{"action":"opened","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/42964","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/42964/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/42964/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/42964/events","html_url":"https://github.com/Homebrew/homebrew/issues/42964","id":101150930,"number":42964,"title":"Fix ActiveMQ plist - related to #39477","user":{"login":"moraygrieve","id":5910204,"avatar_url":"https://avatars.githubusercontent.com/u/5910204?v=3","gravatar_id":"","url":"https://api.github.com/users/moraygrieve","html_url":"https://github.com/moraygrieve","followers_url":"https://api.github.com/users/moraygrieve/followers","following_url":"https://api.github.com/users/moraygrieve/following{/other_user}","gists_url":"https://api.github.com/users/moraygrieve/gists{/gist_id}","starred_url":"https://api.github.com/users/moraygrieve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moraygrieve/subscriptions","organizations_url":"https://api.github.com/users/moraygrieve/orgs","repos_url":"https://api.github.com/users/moraygrieve/repos","events_url":"https://api.github.com/users/moraygrieve/events{/privacy}","received_events_url":"https://api.github.com/users/moraygrieve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-15T08:00:38Z","updated_at":"2015-08-15T08:00:38Z","closed_at":null,"body":"I believe the issues with ActiveMQ plist not starting the application is related to the fact that the activemq script starts a background daemon and then exists, so launchctl gets confused on what it's tracking - see http://stackoverflow.com/questions/18440575/mac-daemon-for-activemq. This suggests the below workaround which seems to work (caveat being I've done limited testing, but runs on loading, restart etc);\r\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\"\r\n\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\r\n<plist version=\"1.0\">\r\n  <dict>\r\n    <key>Label</key>\r\n    <string>homebrew.mxcl.activemq</string>\r\n    <key>RunAtLoad</key>\r\n    <true/>\r\n    <key>KeepAlive</key>\r\n    <false/>\r\n    <key>AbandonProcessGroup</key>\r\n    <true/>\r\n    <key>WorkingDirectory</key>\r\n    <string>/usr/local/Cellar/activemq/5.11.1/libexec</string>\r\n    <key>ProgramArguments</key>\r\n    <array>\r\n      <string>/usr/local/opt/activemq/bin/activemq</string>\r\n      <string>start</string>\r\n    </array>\r\n  </dict>\r\n</plist>\r\n```\r\n"}}