aboutsummaryrefslogblamecommitdiffstats
path: root/testing/celery/celery.initd
blob: 0d45cc98c334c6973d810d5c1b05cca175224471 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                    
#!/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
}