harvester-d4science/config/supervisor/ckan_harvesting.conf

41 lines
1.1 KiB
Plaintext

; ===============================
; 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