Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example upstart script
#!upstart
description "awesome bot"
start on startup
stop on shutdown
script
echo $$ >> /var/run/awesomebot.pid
exec node /var/bots/awesome.js >> /var/log/awesomebot.log 2>&1
end script
respawn
pre-stop script
rm -f /var/run/awesomebot.pid
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.