Skip to content

Instantly share code, notes, and snippets.

@seanhess
Created May 6, 2014 21:51
Show Gist options
  • Save seanhess/257b8a2d5541ee84239a to your computer and use it in GitHub Desktop.
Save seanhess/257b8a2d5541ee84239a to your computer and use it in GitHub Desktop.
Example API upstart script
description 'Hint of Print API'
start on runlevel [2345]
stop on runlevel [06]
limit nofile 10000 15000
respawn
respawn limit 5 5
env NODE_ENV=production
env PORT=80
chdir /root/hintprint
exec /usr/bin/node server/api.js >> /var/log/hintprint-api.log 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment