title: Nodejs: Bash can't find node?
body: <pre><code>#!/bin/sh
  exec node /opt/nodejs/first/app.js 1&gt;&gt;/opt/nodejs/first/log/output 2&gt;&gt;/opt/nodejs/first/log/error
  </code></pre>
  
  <p>This shell script throws an error:</p>
  
  <pre><code>exec: 2: node: not found
  </code></pre>
  
  <p>I'm trying to launch it on system boot:</p>
  
  <pre><code>sudo update-rc.d autostart.sh defaults 95
  </code></pre>
  
  <p>I'm doing something wrong?</p>
  
  <p>Maybe boot level is wrong or order number, or something else?</p>
  
  <p>Thanks ;)</p>