Skip to content

Instantly share code, notes, and snippets.

@allthingsclowd
Created October 10, 2017 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allthingsclowd/632b07ec4ac57ae2c5844cf5c6115401 to your computer and use it in GitHub Desktop.
Save allthingsclowd/632b07ec4ac57ae2c5844cf5c6115401 to your computer and use it in GitHub Desktop.
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