Skip to content

Instantly share code, notes, and snippets.

@vindia
Created January 23, 2012 13:20
Show Gist options
  • Save vindia/1663092 to your computer and use it in GitHub Desktop.
Save vindia/1663092 to your computer and use it in GitHub Desktop.
Launch solr with launchd
<?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>Label</key>
<string>org.apache.lucene</string>
<key>ProgramArguments</key>
<array>
<string>java</string>
<string>-jar</string>
<string>/usr/local/solr/start.jar</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>WorkingDirectory</key>
<string>/usr/local/solr</string>
<key>StandardErrorPath</key>
<string>/var/log/solr.log</string>
<key>StandardOutPath</key>
<string>/var/log/solr.log</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment