18 lines
479 B
SYSTEMD
18 lines
479 B
SYSTEMD
|
[Unit]
|
||
|
Description=Paperless webserver
|
||
|
After=network.target
|
||
|
Wants=network.target
|
||
|
#Requires=redis.service
|
||
|
#Requires=paperless-webserver.socket
|
||
|
|
||
|
[Service]
|
||
|
User=paperless-ngx
|
||
|
Group=paperless-ngx
|
||
|
EnvironmentFile=/etc/default/paperless-ngx
|
||
|
WorkingDirectory=/usr/share/paperless-ngx/src
|
||
|
ExecStartPre=/usr/share/paperless-ngx/prestart.sh
|
||
|
ExecStart=/var/cache/paperless-ngx/python-venv/bin/gunicorn -c ../gunicorn.conf.py paperless.asgi:application
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|