Created
January 21, 2017 22:07
-
-
Save bartread/0a180d5713237fc142754bef64fbbd6a to your computer and use it in GitHub Desktop.
Sample upstart configuration for arcade.ly
This file contains hidden or 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 "Arcade.ly node.js server" | |
author "Bart Read" | |
# used to be: start on startup | |
# until we found some mounts weren't ready yet while booting | |
start on started mountall | |
stop on shutdown | |
# automatically respawn | |
respawn | |
respawn limit 99 5 | |
script | |
export HOME="/root" | |
exec /usr/bin/node /home/ubuntu/arcade/build/production/index.js >> /dev/null 2>&1 | |
end script | |
post-start script | |
# optionally put a script here that will notifiy you node has (re)started | |
# /root/bin/hoptoad.sh "node.js has started!" | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment