ayaports/backports/celery/celery.initd

17 lines
324 B
Text
Raw Normal View History

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