ayaports/user/paperless-ng/paperless-consumer.openrc

23 lines
567 B
Text
Raw Normal View History

#!/sbin/openrc-run
name=$RC_SVCNAME
cfgfile="/etc/qubes/$RC_SVCNAME.conf"
pidfile="/var/run/$RC_SVCNAME.pid"
command="/usr/share/webapps/paperless/src/manage.py"
command_args="document_consumer"
command_user="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
}
start_pre() {
checkpath --directory --owner $command_user:paperless --mode 0775 \
/var/log/paperless \
/var/lib/paperless
}