The /etc/init.d files do not work

Bug #1674761 reported by Jon Ribbens
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
celery (Debian)
Fix Released
Unknown
celery (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

The /etc/init.d/celeryd and /etc/init.d/celerybeat scripts try to start the celery programs like this:

    su "$CELERYBEAT_USER" -c "$CELERYBEAT $*"

(in the _chuid() function)

The 'celery' user which is automatically created by the package, however, has its shell set to /bin/false, so this command does nothing except immediately fail.

Either the celery user needs to have a proper shell set on creation, or the _chuid() function needs to be amended as follows:

    su "$CELERYBEAT_USER" -s /bin/bash -c "$CELERYBEAT $*"

(or change the scripts to use celery's --uid option instead of using 'su')

Joshua Powers (powersj)
Changed in celery (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

This bug has been fixed in Debian since version 3.1.23-4, as per the linked Debian bug.

The fix is available in Ubuntu since Bionic. Therefore, I am closing this one.

Changed in celery (Ubuntu):
status: Triaged → Fix Released
Changed in celery (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.