PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Start bot on reboot (Ubuntu)

Open PeanutBotter opened this issue 10 years ago • 2 comments

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

PeanutBotter avatar Aug 09 '16 18:08 PeanutBotter

Use Upstart and configure a service that starts on the right runlevels.

See here to get going http://upstart.ubuntu.com/getting-started.html

smith-and-web avatar Aug 09 '16 18:08 smith-and-web

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

PeanutBotter avatar Aug 09 '16 19:08 PeanutBotter