mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Merge pull request #116 from issmirnov/issmirnov-baremetal-docs
Update setup flow for bare metal with systemd
This commit is contained in:
commit
364c3ed273
@ -300,13 +300,18 @@ Standard (Bare Metal, Systemd)
|
|||||||
If you're running on a bare metal system that's using Systemd, you can use the
|
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. Then, you can just tell Systemd to enable
|
this new user can read and write to. Be sure to edit the service scripts to point
|
||||||
the two ``.service`` files::
|
to the proper location of your paperless install, referencing the appropriate Python
|
||||||
|
binary. For example: ``ExecStart=/path/to/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
|
||||||
|
accordingly.
|
||||||
|
|
||||||
|
Then, you can just tell Systemd as ``root`` (or using ``sudo``) to enable the two ``.service`` files::
|
||||||
|
|
||||||
# systemctl enable /path/to/paperless/scripts/paperless-consumer.service
|
# systemctl enable /path/to/paperless/scripts/paperless-consumer.service
|
||||||
# systemctl enable /path/to/paperless/scripts/paperless-webserver.service
|
# systemctl enable /path/to/paperless/scripts/paperless-webserver.service
|
||||||
# systemctl start /path/to/paperless/scripts/paperless-consumer.service
|
# systemctl start paperless-consumer
|
||||||
# systemctl start /path/to/paperless/scripts/paperless-webserver.service
|
# systemctl start paperless-webserver
|
||||||
|
|
||||||
|
|
||||||
.. _setup-permanent-standard-ubuntu14:
|
.. _setup-permanent-standard-ubuntu14:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user