Copy the above file to /etc/init.d/
.
Change the NODE_PATH
variable to your index.js path. Change PATH
variable to your which node
Usage:
service ghost start
service ghost stop
service ghost restart
To set to run at boot:
chkconfig --add ghost