Skip to content

Instantly share code, notes, and snippets.

@furins
furins / supervisor.conf
Last active Dec 27, 2015
base supervisor config - replace "username" with your name (based on http://martinbrochhaus.com/solr.html setup, thanks Martin!)
View supervisor.conf
;base supervisor config - replace "username" with your name (based on http://martinbrochhaus.com/solr.html setup, thanks Martin!)
[unix_http_server]
file=/home/username/tmp/supervisor.sock
[supervisord]
logfile=/home/username/my/logs/supervisord.log
logfile_maxbytes=50MB
logfile_backups=10
loglevel=info
@furins
furins / install_solr.sh
Last active May 8, 2017
install supervisor and solr, code almost copied by http://martinbrochhaus.com/solr.html
View install_solr.sh
SOLR_VERSION=4.5.1
WEBFACTION_USER=username
MY_SUPERVISOR_CONF_ID=7399041
# retrieve a standard supervisor.conf
mkdir ~/tmp
cd ~/tmp
wget -O supervisor.conf.json https://api.github.com/gists/$MY_SUPERVISOR_CONF_ID && cat supervisor.conf.json|python -c 'import json,sys;obj=json.load(sys.stdin);print obj["files"]["supervisor.conf"]["content"]' > ../supervisord.conf
rm supervisor.conf.json
cd ~