Your message dated Sun, 20 Mar 2016 10:26:22 +0100
with message-id <[email protected]>
and subject line bug fixed
has caused the Debian Bug report #793946,
regarding supervisord does not chdir to the specified directory before exec'ing 
child
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
793946: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=793946
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Hello,

I believe this was affecting a previous release.
I haven't heard any news from the bug reporter since 3 months so i am
closing this bug.

Cheers,

Orestis

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to