Rename nodejs.conf to .conf copy under
$ /etc/init/<AppName>.conf
Rename nodejs.sh to copy under
$ /etc/init.d/<AppName>
Change the below variables inside the nodejs.conf and nodejs.sh:
:service_name=>"<AppName>",
:server_file=>"<your server.js file for node project>",
:app_dir=>"<directory of your project>",
:log_directory=>"<location of the log file to save>"