Incorporated feedback from upstream PR

Resolved comments in danielquinn/paperless#116
This commit is contained in:
Ivan Smirnov 2016-04-27 21:43:09 -07:00
parent 715f4fcc97
commit d4b2fa43e4

View File

@ -301,18 +301,17 @@ If you're running on a bare metal system that's using Systemd, you can use the
service unit files in the ``scripts`` directory to set this up. You'll need to service unit files in the ``scripts`` directory to set this up. You'll need to
create a user called ``paperless`` and setup Paperless to be in a place that create a user called ``paperless`` and setup Paperless to be in a place that
this new user can read and write to. Be sure to edit the service scripts to point this new user can read and write to. Be sure to edit the service scripts to point
to the proper location of your paperless install. Note that if your system aliased to the proper location of your paperless install, referencing the appropriate Python
``/usr/bin/python`` to python3 you should modify the ``ExecStart`` line to look like binary. For example: ``ExecStart=/path/to/python3 /path/to/paperless/src/manage.py document_consumer``.
this: ``ExecStart=/usr/bin/python3 /path/to/paperless/src/manage.py document_consumer``.
If you don't want to make a new user, you can change the ``Group`` and ``User`` variables If you don't want to make a new user, you can change the ``Group`` and ``User`` variables
accordingly. accordingly.
Then, you can just tell Systemd to enable the two ``.service`` files:: Then, you can just tell Systemd as ``root`` (or using ``sudo``) to enable the two ``.service`` files::
# sudo systemctl enable /path/to/paperless/scripts/paperless-consumer.service # systemctl enable /path/to/paperless/scripts/paperless-consumer.service
# sudo systemctl enable /path/to/paperless/scripts/paperless-webserver.service # systemctl enable /path/to/paperless/scripts/paperless-webserver.service
# sudo systemctl start paperless-consumer # systemctl start paperless-consumer
# sudo systemctl start paperless-webserver # systemctl start paperless-webserver
.. _setup-permanent-standard-ubuntu14: .. _setup-permanent-standard-ubuntu14: