From 6d095910ebbb33e67325b5ffec8b5ebe754a21f7 Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Sun, 10 Jan 2016 23:17:31 +0000 Subject: [PATCH] Systemd serfice units --- scripts/paperless-consumer.service | 11 +++++++++++ scripts/paperless-webserver.service | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 scripts/paperless-consumer.service create mode 100644 scripts/paperless-webserver.service 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