Systemd serfice units

This commit is contained in:
Daniel Quinn 2016-01-10 23:17:31 +00:00
parent 97e9cc37a9
commit 6d095910eb
2 changed files with 22 additions and 0 deletions

View File

@ -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

View File

@ -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