Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
support new pulpcore-content entrypoint (pulpcore >= 3.33)
Browse files Browse the repository at this point in the history
  • Loading branch information
lanky committed Oct 16, 2023
1 parent 66e985a commit 0372b58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion roles/pulp_content/templates/pulpcore-content.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ LimitNOFILE=524288

# timeout is needed Pulp to service its 1st request on extremely slow
# machines, such as qemu-emulated 2-core machines
{% if __pulpcore_version is version('3.33', '>=') -%}
ExecStart={{ __pulp_daemons_dir }}/pulpcore-content \
{%- else %}
ExecStart={{ __pulp_daemons_dir }}/gunicorn pulpcore.content:server \
--name pulp-content \
--bind '{{ pulp_content_bind }}' \
--worker-class 'aiohttp.GunicornWebWorker' \
{% endif %}
--bind '{{ pulp_content_bind }}' \
--workers {{ pulp_content_workers }} \
--timeout {{ pulp_service_timeout }} \
--access-logfile -
Expand Down

0 comments on commit 0372b58

Please sign in to comment.