Blame files/pagure_worker.service.example

Pierre-Yves Chibon b2e832
# This is an example systemd's service file that can be used when using
Pierre-Yves Chibon b2e832
# multiple queues to split the tasks based on their priorities.
Pierre-Yves Chibon b2e832
# You'll need to adjust the <queue_name> in the ExectStart line with the</queue_name>
Pierre-Yves Chibon b2e832
# name of the queue as you set it in the configuration file under the keys
Pierre-Yves Chibon b2e832
# FAST_CELERY_QUEUE, MEDIUM_CELERY_QUEUE or SLOW_CELERY_QUEUE
Pierre-Yves Chibon b2e832
Pierre-Yves Chibon b2e832
[Unit]
Pierre-Yves Chibon b2e832
Description=Pagure worker for gitolite interactions
Pierre-Yves Chibon b2e832
After=redis.target
Pierre-Yves Chibon b2e832
Documentation=https://pagure.io/pagure
Pierre-Yves Chibon b2e832
Pierre-Yves Chibon b2e832
[Service]
Pierre-Yves Chibon b2e832
ExecStart=/usr/bin/celery worker -A pagure.lib.tasks --loglevel=info -Q <queue_name></queue_name>
Pierre-Yves Chibon b2e832
Environment="PAGURE_CONFIG=/etc/pagure/pagure.cfg"
Pierre-Yves Chibon b2e832
Type=simple
Pierre-Yves Chibon b2e832
User=git
Pierre-Yves Chibon b2e832
Group=git
Pierre-Yves Chibon b2e832
Restart=on-failure
Pierre-Yves Chibon b2e832
Pierre-Yves Chibon b2e832
[Install]
Pierre-Yves Chibon b2e832
WantedBy=multi-user.target