Skip to content

Instantly share code, notes, and snippets.

@pcolazurdo
Last active August 4, 2017 05:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcolazurdo/4532625 to your computer and use it in GitHub Desktop.
Save pcolazurdo/4532625 to your computer and use it in GitHub Desktop.
Sample sunspot-solr.monit file
check process sunspot-solr
with pidfile "/var/www/ot/shared/pids/sunspot-solr.pid"
group sunspot-solr
start program = "/bin/su - deploy -c 'cd /var/www/ot/current && bundle exec sunspot-solr start --port=9072 --bind-address=localhost --data-directory=/var/www/ot/shared/sunspot/data --solr-home=/var/www/ot/shared/sunspot --pid-dir=/var/www/ot/shared/pids --log-level=WARNING --log-file=/var/www/ot/shared/log/sunspot.log'"
stop program = "/bin/su - deploy -c 'cd /var/www/ot/current && bundle exec sunspot-solr stop --port=9072 --bind-address=localhost --data-directory=/var/www/ot/shared/sunspot/data --solr-home=/var/www/ot/shared/sunspot --pid-dir=/var/www/ot/shared/pids --log-level=WARNING --log-file=/var/www/ot/shared/log/sunspot.log'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment