Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 |
| OLD | NEW |