1
0

pagure_worker.service.example 699 B

123456789101112131415161718192021
  1. # This is an example systemd's service file that can be used when using
  2. # multiple queues to split the tasks based on their priorities.
  3. # You'll need to adjust the <queue_name> in the ExectStart line with the
  4. # name of the queue as you set it in the configuration file under the keys
  5. # FAST_CELERY_QUEUE, MEDIUM_CELERY_QUEUE or SLOW_CELERY_QUEUE
  6. [Unit]
  7. Description=Pagure worker for gitolite interactions
  8. After=redis.target
  9. Documentation=https://pagure.io/pagure
  10. [Service]
  11. ExecStart=/usr/bin/celery -A pagure.lib.tasks worker --loglevel=INFO -Q <queue_name>
  12. Environment="PAGURE_CONFIG=/etc/pagure/pagure.cfg"
  13. Type=simple
  14. User=git
  15. Group=git
  16. Restart=on-failure
  17. [Install]
  18. WantedBy=multi-user.target