OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 # Copyright 2014 The Swarming Authors. All rights reserved. | 2 # Copyright 2014 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed by the Apache v2.0 license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # This script is run as the user as specified to ./setup_udev.py. It | 6 # This script is run as the user as specified to ./setup_udev.py. It |
7 # starts/signal the bot about plugged or unplugged devices. | 7 # starts/signal the bot about plugged or unplugged devices. |
8 | 8 |
9 # Unset sudo environment variables. | 9 # Unset sudo environment variables. |
10 unset SUDO_COMMAND | 10 unset SUDO_COMMAND |
11 unset SUDO_GID | 11 unset SUDO_GID |
12 unset SUDO_UID | 12 unset SUDO_UID |
(...skipping 16 matching lines...) Expand all Loading... |
29 PATH="$PATH:$HOME/src/android-sdk-linux/platform-tools/" | 29 PATH="$PATH:$HOME/src/android-sdk-linux/platform-tools/" |
30 | 30 |
31 export >> "$LOG_FILE" | 31 export >> "$LOG_FILE" |
32 echo "" >> "$LOG_FILE" | 32 echo "" >> "$LOG_FILE" |
33 | 33 |
34 # Defer execution. | 34 # Defer execution. |
35 # TODO(maruel): When ACTION=='remove', send the signal to the currently running | 35 # TODO(maruel): When ACTION=='remove', send the signal to the currently running |
36 # swarming bot to stop itself. | 36 # swarming bot to stop itself. |
37 # https://code.google.com/p/swarming/issues/detail?id=127 | 37 # https://code.google.com/p/swarming/issues/detail?id=127 |
38 echo "python $base_path/swarming_bot.zip >> $LOG_FILE 2>&1" | at now | 38 echo "python $base_path/swarming_bot.zip >> $LOG_FILE 2>&1" | at now |
OLD | NEW |