Created
May 6, 2014 21:51
-
-
Save seanhess/257b8a2d5541ee84239a to your computer and use it in GitHub Desktop.
Example API upstart script
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 '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