Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Systemd serfice units
Browse files Browse the repository at this point in the history
  • Loading branch information
danielquinn committed Jan 10, 2016
1 parent 97e9cc3 commit 6d09591
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/paperless-consumer.service
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions scripts/paperless-webserver.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6d09591

Please sign in to comment.