[master][doc] Provided an example supervidor config file

And reference to it from the README.

This allows the example conf file to be used as a base in an automatated
deployment.
This commit is contained in:
Ian Murray 2012-02-16 20:27:51 +00:00
parent 1027d777e5
commit 0aa7b7d199
2 changed files with 41 additions and 33 deletions

View File

@ -363,39 +363,7 @@ following steps with the one you are using.
Create a file named `/etc/supervisor/conf.d/ckan_harvesting.conf`, and copy the following contents::
; ===============================
; ckan harvester
; ===============================
[program:ckan_gather_consumer]
command=/var/lib/ckan/std/pyenv/bin/paster --plugin=ckanext-harvest harvester gather_consumer --config=/etc/ckan/std/std.ini
; user that owns virtual environment.
user=okfn
numprocs=1
stdout_logfile=/var/log/ckan/std/gather_consumer.log
stderr_logfile=/var/log/ckan/std/gather_consumer.log
autostart=true
autorestart=true
startsecs=10
[program:ckan_fetch_consumer]
command=/var/lib/ckan/std/pyenv/bin/paster --plugin=ckanext-harvest harvester fetch_consumer --config=/etc/ckan/std/std.ini
; user that owns virtual environment.
user=okfn
numprocs=1
stdout_logfile=/var/log/ckan/std/fetch_consumer.log
stderr_logfile=/var/log/ckan/std/fetch_consumer.log
autostart=true
autorestart=true
startsecs=10
.. include:: config/supervisor/ckan_harvesting.conf
There are a number of things that you will need to replace with your
specific installation settings (the example above shows paths from a

View File

@ -0,0 +1,40 @@
; ===============================
; ckan harvester example
; ===============================
; symlink or copy this file to /etc/supervisr/conf.d
; change the path/to/virtualenv below to the virtualenv ckan is in.
[program:ckan_gather_consumer]
; Full Path to executable, should be path to virtural environment,
; Full path to config file too.
command=/path/to/pyenv/bin/paster --plugin=ckanext-harvest harvester gather_consumer --config=/path/to/config/std.ini
; user that owns virtual environment.
user=ckan
numprocs=1
stdout_logfile=/var/log/ckan/std/gather_consumer.log
stderr_logfile=/var/log/ckan/std/gather_consumer.log
autostart=true
autorestart=true
startsecs=10
[program:ckan_fetch_consumer]
; Full Path to executable, should be path to virtural environment,
; Full path to config file too.
command=/path/to/pyenv/bin/paster --plugin=ckanext-harvest harvester fetch_consumer --config=/path/to/config/std.ini
; user that owns virtual environment.
user=ckan
numprocs=1
stdout_logfile=/var/log/ckan/std/fetch_consumer.log
stderr_logfile=/var/log/ckan/std/fetch_consumer.log
autostart=true
autorestart=true
startsecs=10