Skip to content

Instantly share code, notes, and snippets.

@awd
Forked from gcachet/org.apache.solr.plist
Created October 27, 2011 14:34
Show Gist options
  • Save awd/1319707 to your computer and use it in GitHub Desktop.
Save awd/1319707 to your computer and use it in GitHub Desktop.
plist to launch solr with launchd on mac os X
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC
"-//Apple Computer//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.solr</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/java</string>
<string>-Djetty.home=/opt/local/share/solr</string>
<string>-Djetty.logs=/opt/local/share/solr/logs</string>
<string>-Dsolr.solr.home=/opt/local/share/solr/multicore</string>
<string>-jar</string>
<string>/opt/local/share/solr/start.jar</string>
</array>
<key>ServiceDescription</key>
<string>Solr</string>
<key>WorkingDirectory</key>
<string>/opt/local/share/solr</string>
<key>UserName</key>
<string>gregoire</string>
<key>GroupName</key>
<string>staff</string>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment