Project

Profile

Help

Issue #8296 » pulpcore-worker@0.service.txt

wibbit, 02/23/2021 11:23 AM

 
[Unit]
Description=Pulp RQ Worker
After=network-online.target
Wants=network-online.target

[Service]
EnvironmentFile=-/opt/systems/etc/default/pulp-workers
EnvironmentFile=-/opt/systems/etc/default/pulp-workers-%i
Environment="DJANGO_SETTINGS_MODULE=pulpcore.app.settings"
Environment="PULP_SETTINGS=/opt/acme/etc/pulp/settings.py"
Environment="LD_LIBRARY_PATH=/opt/acme/lib64:/opt/acme/lib"
Environment="PATH=/opt/acme/bin"
User=pulp
Group=pulp
WorkingDirectory=/var/run/pulpcore-worker-%i/
RuntimeDirectory=pulpcore-worker-%i
ExecStart=/opt/acme/bin/python3 /opt/acme/bin/rq worker \
-w pulpcore.tasking.worker.PulpWorker \
--pid=/var/run/pulpcore-worker-%i/reserved-resource-worker-%i.pid \
-c 'pulpcore.rqconfig' \
--disable-job-desc-logging


# This provides reconnect support for PostgreSQL and Redis. Without reconnect support, if either
# is not available at startup or becomes disconnected, this process will die and not respawn.
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target
(1-1/2)