Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The supervisord documentation states that

No shell is executed by supervisord when it runs a subprocess, so environment variables such as USER, PATH, HOME, SHELL, LOGNAME, etc. are not changed from their defaults or otherwise reassigned. (...) If you need to set environment variables for a particular program that might otherwise be set by a shell invocation for a particular user, you must do it explicitly within the environment= program config option.

The include an example, which I reproduced into /etc/supervisor/conf.d/apache2.conf:

command=/home/chrism/bin/httpd -c "ErrorLog /dev/stdout" -DFOREGROUND


# supervisorctl reread
ERROR: CANT_REREAD: Unexpected end of key/value pairs

Removing the 'environment' line of the apache2 configuration results in no parse errors for the re-read. What's dotty here? I'm using supervisor 3.0a8-1 on Debian Squeeze and note that the mainline supervisor is 3.0a10; I cannot find reference of environment has having been added since 3.0a8

share|improve this question
up vote 6 down vote accepted

says "Values containing non-alphanumeric characters should be placed in quotes"

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.