diff --git a/scripts/paperless-consumer.service b/scripts/paperless-consumer.service new file mode 100644 index 000000000..d345ae35d --- /dev/null +++ b/scripts/paperless-consumer.service @@ -0,0 +1,11 @@ +[Unit] +Description=Paperless consumer + +[Service] +EnvironmentFile=/etc/conf.d/paperless +User=paperless +Group=paperless +ExecStart=/home/paperless/project/virtualenv/bin/python /home/paperless/project/src/manage.py consume -v $PAPERLESS_CONSUMPTION_VERBOSITY + +[Install] +WantedBy=multi-user.target diff --git a/scripts/paperless-webserver.service b/scripts/paperless-webserver.service new file mode 100644 index 000000000..1a2386471 --- /dev/null +++ b/scripts/paperless-webserver.service @@ -0,0 +1,11 @@ +[Unit] +Description=Paperless webserver + +[Service] +EnvironmentFile=/etc/conf.d/paperless +User=paperless +Group=paperless +ExecStart=/home/paperless/project/virtualenv/bin/python /home/paperless/project/src/manage.py runserver 0.0.0.0:8000 + +[Install] +WantedBy=multi-user.target