Skip to content

Instantly share code, notes, and snippets.

@bartread
Created January 21, 2017 22:07
Show Gist options
  • Save bartread/0a180d5713237fc142754bef64fbbd6a to your computer and use it in GitHub Desktop.
Save bartread/0a180d5713237fc142754bef64fbbd6a to your computer and use it in GitHub Desktop.
Sample upstart configuration for arcade.ly
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