The ColdFusion 9 team was kind enough to share the startup scripts for the ColdFusion install of Solr for OS X.
Here’s how to use these scripts:
1. Copy the files to solr installation directory. i.e /Applications/ColdFusion9/solr or /ColdFusion9/solr. Change the scripts to have execute permission.
2. Open cf-init-solr.sh and cf-solr-startup and be sure that CF_DIR is set to your coldfusion9 install directory.
From there, run:
sudo ./cf-init-solr install
to install the scripts.
sudo ./cf-init-solr uninstall
to remove the scripts.