title: CWD of an Node.js application started with upstart (Ubuntu)
body: <p>I've coded an node.js app that when get executed need to return CWD from process to be able to read files on disk. </p>
  
  <p>When I start the app directly with node in the actual app directory... </p>
  
  <pre><code> #!sh
   node app.js
  </code></pre>
  
  <p>everything is working fine and "process.cwd()" return the good path.  But when the script is started with <a href="http://upstart.ubuntu.com" rel="noreferrer">upstart</a> or even directly with node from an other directory "process.cwd()" return "/" in the case of upstart and whatever directory from witch I directly start my app with node.  So process.cwd() seem to output the directory from witch the command is executed.  Why? What to do? </p>