PokemonGo-Bot
PokemonGo-Bot copied to clipboard
Start bot on reboot (Ubuntu)
Simple question:
How can I start the bot at reboot on Ubuntu 14.04?
I thought a root crontab job like this would work, but it doesn't:
cd /home/pogo/PokemonGo-Bot
source bin/activate
./run.sh configs/config.json
Use Upstart and configure a service that starts on the right runlevels.
See here to get going http://upstart.ubuntu.com/getting-started.html
Thanks, that was great advice.
For posterity, I added a file /etc/init/runpogobot.conf, which contained:
description "Startup the PokemonGo-Bot"
start on runlevel [2345]
script
chdir /home/pogo/PokemonGo-Bot
. bin/activate
./run.sh configs/config.json
end script