#!/sbin/openrc-run
supervisor=supervise-daemon

description="celery queue worker"

: ${CELERY_USER:="celery"}
: ${CELERY_GROUP:="$(id -gn $LS_USER)"}

pidfile="/run/$RC_SVCNAME.sd.pid"
supervise_daemon_args="-u $CELERY_USER -g $CELERY_GROUP -p $pidfile"
command=/usr/bin/celery
command_args="${CELERY_OPTS}"

depends() {
	use net
}
