Package: supervisor
Version: 3.0r1-1
Severity: important
Tags: upstream

Dear Maintainer,

Using the "directory" option in a "[program:x]" section of the supervisord
configuration does not have the intended effect: the program is executed
from "/" regardless of the value of the option.

The related documentation [1] says this option should be "A file path
representing a directory to which supervisord should temporarily chdir
before exec’ing the child."

A simple way to reproduce the bug is to write the following configuration
in /etc/supervisor/conf.d/env.conf:

    [program:env]
    command=/usr/bin/env
    startsecs=0
    user=me
    directory=/home/me/

The output, in /var/log/supervisor/env-stdout---supervisor-O8pX6t.log, is
pretty clear (look at the value for PWD).

    LC_NUMERIC=
    LC_CTYPE=
    SUPERVISOR_GROUP_NAME=env
    LC_PAPER=
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    LANG=en_US.UTF-8
    TERM=screen-256color
    SUPERVISOR_SERVER_URL=unix:///var/run/supervisor.sock
    LANGUAGE=en_GB:en
    LC_MONETARY=
    SUPERVISOR_ENABLED=1
    LC_ADDRESS=
    SUPERVISOR_PROCESS_NAME=env
    LC_ALL=
    LC_IDENTIFICATION=
    LC_MESSAGES=
    LC_COLLATE=
    LC_TELEPHONE=
    LC_MEASUREMENT=
    PWD=/
    LC_NAME=
    LC_TIME=

The output is the same regardless the value of the directory option
(present or not present).

This bug is filed in debian rather than in the supervisor bug tracker
because the packaged version, 3.0r1-1, differs from the latest release,
3.1.3. This bug may not occur in more recent versions of supervisor
(this has not been tested).

[1]: http://supervisord.org/configuration.html#program-x-section-settings

Cheers,
Christophe-Marie Duquesne

-- System Information:
Debian Release: 8.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages supervisor depends on:
ii  python                2.7.9-1
ii  python-meld3          1.0.0-1
ii  python-pkg-resources  5.5.1-1

supervisor recommends no packages.

supervisor suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to