title: What is the difference between nginx daemon on/off option?
body: <p>This is my first web-server administration experience and I want to build docker container which uses nginx as a web-server. In all docker tutorial <code>daemon off;</code> option is put into main <code>.conf</code> file but explanation about it is omitted.</p>
  
  <p>I search on the internet about it and I don't understand what is the difference between <code>daemon on;</code> and <code>daemon off;</code> options. Some people mentioned that <code>daemon off;</code> is for production, why?</p>
  
  <p>Can you explain, what is the difference between this two options, and why I should use <code>daemon off;</code> on production?</p>