Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(808)

Side by Side Diff: skolo/raspberry-pi/start_swarming

Issue 1930143002: Make swarming bootstrap at boot, not login (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Hack to get swarming access to /b 3 # Hack to get swarming access to /b
4 sudo chmod 777 /b 4 sudo chmod 777 /b
5 5
6 # Wait 10s to make sure ssl is fully booted. Otherwise, we get an error
7 # when trying to download the bootstrap code.
8 sleep 10s
stephana 2016/04/29 13:18:41 There is some more evidence that certain python co
kjlubick 2016/04/29 13:53:06 Agreed. I think systemd is more "modern" and more
9
6 if [ ! -d "/b/swarm_slave" ]; then 10 if [ ! -d "/b/swarm_slave" ]; then
7 cd /b 11 cd /b
8 echo "Bootstrapping swarming, expect a reboot" 12 echo "Bootstrapping swarming, expect a reboot"
9 python -c "import urllib; exec urllib.urlopen('https://chromium-swarm.appspot. com/bootstrap').read()" 13 python -c "import urllib; exec urllib.urlopen('https://chromium-swarm.appspot. com/bootstrap').read()"
10 else 14 else
11 echo "Starting swarming" 15 echo "Starting swarming"
12 /usr/bin/python /b/swarm_slave/swarming_bot.zip start_bot & 16 /usr/bin/python /b/swarm_slave/swarming_bot.zip start_bot &
13 fi 17 fi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698