2022-12-27 20:40:33 +00:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
supervisor=supervise-daemon
|
|
|
|
|
|
|
|
description="celery queue worker"
|
|
|
|
|
|
|
|
: ${CELERY_USER:="celery"}
|
2023-05-05 05:09:45 +00:00
|
|
|
: ${CELERY_GROUP:="$(id -gn $CELERY_USER)"}
|
2022-12-27 20:40:33 +00:00
|
|
|
|
|
|
|
pidfile="/run/$RC_SVCNAME.sd.pid"
|
2023-05-05 05:09:45 +00:00
|
|
|
supervise_daemon_args="-u $CELERY_USER -g $CELERY_GROUP"
|
2022-12-27 20:40:33 +00:00
|
|
|
command=/usr/bin/celery
|
|
|
|
command_args="${CELERY_OPTS}"
|
|
|
|
|
|
|
|
depends() {
|
|
|
|
use net
|
|
|
|
}
|