Created
February 8, 2014 20:14
-
-
Save AvianFlu/8889521 to your computer and use it in GitHub Desktop.
Example upstart script
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
#!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