diff --git a/README.rst b/README.rst index b6143e1..77493db 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/config/supervisor/ckan_harvesting.conf b/config/supervisor/ckan_harvesting.conf new file mode 100644 index 0000000..4274a54 --- /dev/null +++ b/config/supervisor/ckan_harvesting.conf @@ -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