mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-21 13:02:40 +00:00
The init-system-checks step already runs them once and all three services depend on init-complete. Measured idle anon PSS saved on Python 3.14: consumer 14 MiB, beat 26 MiB, worker 27 MiB.
12 lines
472 B
Plaintext
Executable File
12 lines
472 B
Plaintext
Executable File
#!/command/with-contenv /usr/bin/bash
|
|
# shellcheck shell=bash
|
|
|
|
cd ${PAPERLESS_SRC_DIR}
|
|
|
|
# Django system checks already ran once in init-system-checks, skip repeating them
|
|
if [[ -n "${USER_IS_NON_ROOT}" ]]; then
|
|
exec /usr/local/bin/celery --skip-checks --app paperless worker --loglevel INFO --without-mingle --without-gossip
|
|
else
|
|
exec s6-setuidgid paperless /usr/local/bin/celery --skip-checks --app paperless worker --loglevel INFO --without-mingle --without-gossip
|
|
fi
|