Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example upstart script
description "awesome bot"
start on startup
stop on shutdown
echo $$ >> /var/run/
exec node /var/bots/awesome.js >> /var/log/awesomebot.log 2>&1
end script
pre-stop script
rm -f /var/run/
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.