title: Ubuntu upstart init script not working
body: <p>I'm following an nginx tutorial from <a href="https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uwsgi-and-nginx-on-ubuntu-14-04#create-an-upstart-script" rel="nofollow noreferrer">here</a> and I created a <code>myproject.conf</code> file in <code>/etc/init/</code> as stated in the tutorial. The code is as follows: </p>
  
  <pre><code>description "uWSGI server instance configured to serve myproject"
  
  start on runlevel [2345]
  stop on runlevel [!2345]
  
  setuid ec2-user
  setgid www-data
  
  
  env PATH=/home/ec2-user/login_test/venv/bin
  chdir /home/ec2-user/login_test/oauth_login
  exec uwsgi --ini wsgi.ini
  </code></pre>
  
  <p>When I tried to activate this by giving <code>sudo start myproject</code> it returns:</p>
  
  <pre><code>start: Unknown job: myproject
  </code></pre>
  
  <p>How can I get this to work? </p>