Created
September 25, 2014 18:38
-
-
Save camsom/2acdf544da4bdf6c9fb0 to your computer and use it in GitHub Desktop.
upstart for a knucklehead
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
#!/bin/sh | |
start on (filesystem) | |
stop on runlevel [016] | |
script | |
. /var/lib/cloud/instance/user-data.txt | |
chdir /home/ubuntu/NextTier-Achievement-Worker | |
. /home/ubuntu/venv/bin/activate | |
exec python /home/ubuntu/NextTier-Achievement-Worker/worker.py | |
end script | |
respawn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment