[Python-modules-team] Bug#824786: celeryd: Initscript doesn't start daemon
Alex Kiousis
alexk at noc.grnet.gr
Thu May 19 17:56:38 UTC 2016
Package: celeryd
Severity: important
Dear Maintainer,
Default celeryd package ships with the (upstream) SysV initscript and
creates a system user named celery. By default this user has /bin/false
as a shell. So if you set correct variables in /etc/default/celery and
start the daemon, celery never starts.
This is the relevant function from the initscript:
_chuid () {
su "$CELERYD_USER" -c "$CELERYD_MULTI $*"
}
Simply changing this to:
su "$CELERYD_USER" --shell=/bin/sh -c "$CELERYD_MULTI $*"
works. I don't know if this is the best way to fix this, though.
I'm marking this important because the package celeryd only provides the
initscript. Running the worker proccess by hand of course works.
More information about the Python-modules-team
mailing list