Skip to content

Instantly share code, notes, and snippets.

@danpalmer
Created April 12, 2013 13:37
Show Gist options
  • Save danpalmer/5372062 to your computer and use it in GitHub Desktop.
Save danpalmer/5372062 to your computer and use it in GitHub Desktop.
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