diff --git a/files/pagure_worker.service.example b/files/pagure_worker.service.example new file mode 100644 index 0000000..c8f172a --- /dev/null +++ b/files/pagure_worker.service.example @@ -0,0 +1,21 @@ +# This is an example systemd's service file that can be used when using +# multiple queues to split the tasks based on their priorities. +# You'll need to adjust the in the ExectStart line with the +# name of the queue as you set it in the configuration file under the keys +# FAST_CELERY_QUEUE, MEDIUM_CELERY_QUEUE or SLOW_CELERY_QUEUE + +[Unit] +Description=Pagure worker for gitolite interactions +After=redis.target +Documentation=https://pagure.io/pagure + +[Service] +ExecStart=/usr/bin/celery worker -A pagure.lib.tasks --loglevel=info -Q +Environment="PAGURE_CONFIG=/etc/pagure/pagure.cfg" +Type=simple +User=git +Group=git +Restart=on-failure + +[Install] +WantedBy=multi-user.target