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

Support new entrypoints #1487

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/1486.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added conditional blocks around the ExecStart parts in pulpcore-api and pulpcore-content systemd units to support the new entrypoints in releases >= 3.33i
4 changes: 4 additions & 0 deletions roles/pulp_api/templates/pulpcore-api.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ 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-api \
{% else %}
ExecStart={{ __pulp_daemons_dir }}/gunicorn pulpcore.app.wsgi:application \
{%- endif %}
--name pulp-api \
--bind '{{ pulp_api_bind }}' \
--workers {{ pulp_api_workers }} \
Expand Down
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
Loading