I wasn't quite sure what to call this question but here i go:
i have a remote server
where i have installed node.js
now normally this would be how i start the server:
ssh root@ip
cd /var/www/mydomain/server
nodejs server.js
This works without any issues however what happens when i close down the terminal? How can i make sure that the server doesn't just stop. And how can i control it after i have started it (for instance restarting / stopping it).