title: Supervisor config user option in program section
body: <p>I have a Tornado program, and all the relative python lib installed in a non-root user called bob by:</p>
  
  <pre><code>pip install --user xxx
  </code></pre>
  
  <p>Now I want to run it in supervisor:</p>
  
  <pre><code>[program:testpro]
  command=python /path/to/myfile.py
  user=bob    ; set the user to bob
  redirect_stderr=true
  stdout_logfile=/path/to/log
  numproces=1
  autostart=true
  </code></pre>
  
  <p>but it failed, in supervisorctl status:</p>
  
  <pre><code>testpro            FATAL     Exited too quickly (process log may have details)
  </code></pre>
  
  <p>I see the log and find it can't import relative python lib, so it it not run as bob.</p>
  
  <p>then I change to :</p>
  
  <pre><code>[program:testpro]
  command=sudo -u bob -i python /path/to/myfile.py
  ;user=bob ;comment this
  redirect_stderr=true
  stdout_logfile=/path/to/log
  numproces=1
  autostart=true
  </code></pre>
  
  <p>and it run ok</p>
  
  <p>So, what does the option <code>user</code> do? and how can I config the run-as user in an option?</p>