title: Can't start apache with supervisord from a Docker container
body: <p>I'm running a Docker container with CoreOS which uses Debian latest as a base and has various packages installed including supervisor and apache2. I can start and successfully run apache using the following command:</p>
  
  <pre><code># /usr/bin/pidproxy /var/run/apache2.pid /bin/bash -c "source /etc/apache2/envvars &amp;&amp; /usr/sbin/apache2 -DFOREGROUND -k start"
  </code></pre>
  
  <p>However, when I stick this command in a supervisor config file:</p>
  
  <pre><code>[program:apache2]
  command=/usr/bin/pidproxy /var/run/apache2.pid /bin/bash -c "source /etc/apache2/envvars &amp;&amp; /usr/sbin/apache2 -DFOREGROUND -k start"
  redirect_stderr=true
  </code></pre>
  
  <p>and do this:</p>
  
  <pre><code># supervisorctl start apache2
  </code></pre>
  
  <p>I get back this response:</p>
  
  <pre><code>apache2: ERROR (abnormal termination)
  </code></pre>
  
  <p>Looking at the supervisor process log file I see the help output from the apache2 command, as if it had been called like so <code>apache2 -h</code>. I have no idea why a command which runs when executed on the command line as root (ssh into the container) would not work when verbatim executed by supervisorctl (run as root).</p>
  
  <p>Any point in the right direction would be greatly appreciated.</p>