title: running node.js server using upstart causes 'terminated with status 127' on 'ubuntu 10.04'
body: <p>i have written an upstart script for ubuntu to launch my node.js server manually or on startup. But it always terminates with status 127 and i can't find more information about what is going wrong. If i execute it manually then it works and i also tested it on ubuntu 12.10 where it also works ... it only fails to work on ubuntu 10.04 which is the production server i'm using. </p>
  
  <p>The script: </p>
  
  <pre><code>description ""
  author      ""
  
  start on started mountall
  stop on shutdown
  respawn
  respawn limit 20 5
  
  # Max open files are @ 1024 by default. Bit few.
  limit nofile 32768 32768
  
  env HOME=/home/projects/&lt;project_name&gt;/data/current
  
  script
      export HOME=$HOME
      chdir $HOME
      exec sudo -u &lt;user_to_launch_the_script&gt; /usr/bin/node /home/projects/&lt;project_name&gt;/data/current/server.js 2&gt;&amp;1 &gt;&gt; /var/log/node.log
  end script
  </code></pre>
  
  <p>any idea where to find more information about the status 127? Or how i can fix this? i have looked in /var/log/daemon.log and in /var/log/syslog.log .. but there is no relevant info except for 'main process (29520) terminated with status 127'.</p>
  
  <p>kind regards,</p>
  
  <p>Daan</p>