Created
April 12, 2013 13:37
-
-
Save danpalmer/5372062 to your computer and use it in GitHub Desktop.
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 "node.js server for StatusBoard GoSquared endpoint" | |
author "Dan Palmer - http://danpalmer.me/" | |
start on startup | |
stop on shutdown | |
respawn | |
respawn limit 20 5 | |
limit nofile 32768 32768 | |
script | |
export HOME="/root" | |
set -e | |
exec sudo -u www-data /usr/bin/node \ | |
/path/to/api/statusboard-gosquared/api.js \ | |
>> /var/log/node-statusboard-gosquared.log 2>&1 | |
end script | |
post-start script | |
# Optional - script for notifications of restart | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment