systemctl incorrectly complains about unbalanced quotes

Bug #1826257 reported by caleb collins-parks
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
celery
New
Undecided
Unassigned

Bug Description

In our service file we have the following execstart:

ExecStart=/bin/sh -c '${CELERY_BIN} multi start ${CELERYD_NODES} \
  -A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} \
  --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}'

This works just fine in ubuntu 16. However, in Ubuntu 18.04.2 LTS it throws this error:

Unbalanced quoting, ignoring: "/bin/sh -c '${CELERY_BIN} multi start ${CELERYD_NODES} \"

The workaround to the problem is getting rid of backslashes and doing everything on one line.
However, this looks ugly and I think there is a line length limit, which doesn't apply in our case, but could be problematic for people with very long lines.

Revision history for this message
Ben Shum (bshum) wrote :

I believe this bug was opened for our project Evergreen instead of Celery, which the code snippet seems to imply.

That said, perusing Celery's website, I see that they tell people to put issues into github though: https://github.com/celery/celery/issues/

Reassigning bug to the Celery project anyways.

affects: evergreen → celery
Revision history for this message
caleb collins-parks (caleb15) wrote :

@bshum I assumed this was a ubuntu bug because it looked like a syntax error, but I can't replicate it :( Maybe it is a celery bug? I'm not sure anymore.

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.