title: How to start daemon process from python on windows?
body: <p>Can my python script spawn a process that will run indefinitely?</p>
  
  <p>I'm not too familiar with python, nor with spawning deamons, so I cam up with this:</p>
  
  <pre><code>si = subprocess.STARTUPINFO()
  si.dwFlags = subprocess.CREATE_NEW_PROCESS_GROUP | subprocess.CREATE_NEW_CONSOLE
  subprocess.Popen(executable, close_fds = True, startupinfo = si)
  </code></pre>
  
  <p>The process continues to run past python.exe, but is closed as soon as I close the cmd window. </p>