From 4198de604f3d5b67ddd9a79fd84087f995c3714b Mon Sep 17 00:00:00 2001 From: David Martin Date: Wed, 24 May 2017 22:34:02 +1000 Subject: [PATCH] Copy Paperless service files to systemd directory before enabling them. The problem with the original instruction is that systemd creates a symlink pointing to the service file in the paperless directory. A user is unlikely to leave the changes in the service files committed (especially not on a master branch checkout) and they are easily lost and the services fail to start without obvious reason. To avoid this we simply copy the service files to the systemd directory directly and use the files in the repository only as an example. --- docs/setup.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/setup.rst b/docs/setup.rst index fe1ab6628..cc806d52e 100644 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -313,11 +313,13 @@ paperless install, referencing the appropriate Python binary. For example: 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:: +Then, as ``root`` (or using ``sudo``) you can just copy the ``.service`` files +to the Systemd directory and tell it to enable the two services:: - # systemctl enable /path/to/paperless/scripts/paperless-consumer.service - # systemctl enable /path/to/paperless/scripts/paperless-webserver.service + # cp /path/to/paperless/scripts/paperless-consumer.service /etc/systemd/system/ + # cp /path/to/paperless/scripts/paperless-webserver.service /etc/systemd/system/ + # systemctl enable paperless-consumer + # systemctl enable paperless-webserver # systemctl start paperless-consumer # systemctl start paperless-webserver