Skip to content

Instantly share code, notes, and snippets.

@solotimes
Created October 27, 2011 08:22
Show Gist options
  • Save solotimes/1319048 to your computer and use it in GitHub Desktop.
Save solotimes/1319048 to your computer and use it in GitHub Desktop.
juggernaut upstart script
description "juggernaut"
author "andrew toknight@gmail.com"
# must be start after redis-server
start on started redis-server
stop on stopped redis-server
# Automatically Respawn:
respawn
respawn limit 99 5
script
# Not sure why $HOME is needed, but we found that it is:
export HOME="/root"
exec /usr/bin/juggernaut >> /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