Permanent socket.io server on Ubuntu Linux
<p>I'm starting a socket.io server by entering a command:</p>

<pre><code>node server.js
</code></pre>

<p>But that sometimes stops, or I need to have a terminal window open for it to run.</p>

<p>How can I set this up on a Linux server (Ubuntu) so there is a permanent server running in the system (like Apache) and if it stops it restarts automatically?</p>