Skip to content

Commit

Permalink
Clarifies systemd docs and path
Browse files Browse the repository at this point in the history
The path was a generic one, so this uses the default of the ansible-pulp
installer to align them more closely. It also updates the location of
the systemd unit files.

https://pulp.plan.io/issues/4615
closes #4615
  • Loading branch information
Brian Bouterse committed Apr 2, 2019
1 parent fc089c0 commit f85272d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions docs/installation/instructions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,15 @@ After installing and configuring Redis, you should configure it to start at boot
Systemd
-------

To run the Pulp services, three systemd files needs to be created in /etc/systemd/system/. You can
apply custom configuration here using the ``Environment`` option using settings from the
To run the Pulp services, two systemd files needs to be created in /usr/lib/systemd/system/. You
can apply custom configuration here using the ``Environment`` option using settings from the
:ref:`Pulp settings documentation <configuration>`.

.. note::

These examples may need their ``User`` updated and the path to the rq binary in ``ExecStart``.


``pulp-resource-manager.service``::

[Unit]
Expand All @@ -154,7 +159,7 @@ apply custom configuration here using the ``Environment`` option using settings
User=pulp
WorkingDirectory=/var/run/pulp-resource-manager/
RuntimeDirectory=pulp-resource-manager
ExecStart=/path/to/python/bin/rq worker -n resource-manager@%%h\
ExecStart=/usr/local/lib/pulp/bin/rq worker -n resource-manager@%%h\
-w 'pulpcore.tasking.worker.PulpWorker'\
-c 'pulpcore.rqconfig'\
--pid=/var/run/pulp-resource-manager/resource-manager.pid
Expand All @@ -175,7 +180,7 @@ apply custom configuration here using the ``Environment`` option using settings
User=pulp
WorkingDirectory=/var/run/pulp-worker-%i/
RuntimeDirectory=pulp-worker-%i
ExecStart=/path/to/python/bin/rq worker -w 'pulpcore.tasking.worker.PulpWorker'\
ExecStart=/usr/local/lib/pulp/bin/rq worker -w 'pulpcore.tasking.worker.PulpWorker'\
-n reserved-resource-worker-%i@%%h\
-c 'pulpcore.rqconfig'\
--pid=/var/run/pulp-worker-%i/reserved-resource-worker-%i.pid
Expand Down

0 comments on commit f85272d

Please sign in to comment.