title: How to restart a Django development web server in virtual machine on file modification?
body: <p>I have a VirtualBox machine managed by Vagrant. On this machine I run a Django development web server:</p>
  
  <pre><code>./manage.py runserver 0.0.0.0:8080
  </code></pre>
  
  <p>The codebase is big so for faster code reload I installed <code>pyinotify</code>. Django supports it since 1.7. I'm using 1.7.</p>
  
  <p>The codebase sits in a synced folder (NFS) and I'm using Sublime 3 to edit files on my host machine (OS X).</p>
  
  <p>However <a href="https://stackoverflow.com/questions/4231243/inotify-with-nfs">inotify doesn't go well with NFS</a> and the code autoreload do not work.</p>
  
  <p>How do I restart a dev server in the VM?</p>