title: Upstart failing to initialize a gunicorn server
body: <p>I am trying to start an instance of a server running gunicorn. Here is my upstart script:</p>
  
  <pre><code> expect daemon
  
   script
       cd /opt/app/live/srv/poi_proxy
       exec /usr/local/bin/gunicorn server:app -c /etc/gunicorn.conf
   end script
  </code></pre>
  
  <p>And here is the gunicorn config file:</p>
  
  <pre><code> bind =  '0.0.0.0:80'
   workers = 3
   worker_class = 'gevent'
  </code></pre>
  
  <p>The problem i'm having is that when running the command through the command prompt the server starts without issue. However when using the upstart script it generates a defunct process for each of the children.</p>
  
  <p>Also i believe the path has to do something with it. When starting the server through the command line if i do:</p>
  
  <pre><code> cd /opt/app/live/srv/poi_proxy
   sudo /usr/local/bin/gunicorn server:app -c /etc/gunicorn.conf
  </code></pre>
  
  <p>It works fine, however:</p>
  
  <pre><code> sudo /usr/local/bin/gunicorn /opt/app/live/srv/poi_proxy/server:app -c /etc/gunicorn.conf
  </code></pre>
  
  <p>I am face with the same problem as when using upstart
  Any idea of what could be wrong or how to fix it would be greatly appreciated. </p>