Created
October 10, 2017 13:05
-
-
Save allthingsclowd/632b07ec4ac57ae2c5844cf5c6115401 to your computer and use it in GitHub Desktop.
Basic linux service wrapper for nodejs application to run at startup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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