title: Why nohup on execute resource doesn't work - Chef recipe
body: <p>I'm trying to deploy a django app (dev mode) using chef. The problem is, when execute the recipe the server doesn't kept alive.The command works when I log in, but because it doesn't change the session. Any suggestions are helpful.</p>
  <pre><code>execute 'django_run' do
    user 'root'
    cwd '/var/www/my-app/'
    command 'source ./.venv/bin/activate &amp;&amp; sudo -E nohup python2 ./manage.py runserver 0.0.0.0:8000 &gt; /dev/null 2&gt;&amp;1 &amp;'
  end
  </code></pre>