ayaports/user/paperless-ngx/paperless-webserver.openrc
build@apk-groulx f77e3588dc user/insaned: new aport
user/lua-aports: upgrade
user/paperless-ng: upgrade + openrc
user/paperless-ngx: new aport
user/py3-anyio: new aport
user/py3-dateparser: upgrade
user/py3-pdf2image: new aport
user/py3-pyaml: new aport
user/py3-pytz: new aport
user/py3-pyyaml: new aport
user/py3-tzdata: new aport
user/py3-tzlocal: new aport
user/rmfakecloud: upgrade
user/scanbd: new aport
user/scantopl: new aport
user/xinetd: new aport
2022-08-15 15:51:38 +00:00

24 lines
692 B
Text

#!/sbin/openrc-run
name="$RC_SVCNAME"
cfgfile="/etc/conf.d/$RC_SVCNAME.conf"
pidfile="/var/run/$RC_SVCNAME.pid"
command="/usr/bin/gunicorn"
command_args="-c /usr/share/webapps/paperless/gunicorn.conf.py paperless.asgi:application --chdir /usr/share/webapps/paperless/src"
command_user="paperless"
command_group="paperless"
start_stop_daemon_args=""
command_background="yes"
output_log="/var/log/paperless/$RC_SVCNAME.log"
error_log="/var/log/paperless/$RC_SVCNAME.err"
depend() {
need redis
need postgresql
}
start_pre() {
checkpath --directory --owner $command_user:$command_group --mode 0775 \
/var/log/paperless \
/var/lib/paperless
}