Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Basic linux service wrapper for nodejs application to run at startup
description "Fujitsu K5 IaaS AutoScaling Demo Node.js Server"
author "Graham J Land"
start on started mountall
stop on shutdown
respawn
respawn limit 99 5
script
export HOME="/root"
exec /usr//bin/nodejs /var/helloworld/helloworld.js >> /var/log/node.log 2>&1
end script
post-start script
echo "Started HelloWorld Demo NodeJS Webserver"
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment