File Format

supervisord.conf is a Windows-INI-style (Python ConfigParser)file. It has sections (each denoted by a [header]) and key / valuepairs within the sections. The sections and their allowable valuesare described below.

Environment Variables

Environment variables that are present in the environment at the time thatsupervisord is started can be used in the configuration fileusing the Python string expression syntax %(ENV_X)s:

  1. [program:example]
  2. command=/usr/bin/example --loglevel=%(ENV_LOGLEVEL)s

In the example above, the expression %(ENV_LOGLEVEL)s would be expandedto the value of the environment variable LOGLEVEL.

Note

In Supervisor 3.2 and later, %(ENV_X)s expressions are supported inall options. In prior versions, some options support them, but mostdo not. See the documentation for each option below.