Skip to content

Commit

Permalink
Add reboot message
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Jul 16, 2024
1 parent 669381a commit f7f9360
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildbot/start_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ function is_worker_connected() {
function shutdown_maybe() {
[[ $(cat /proc/uptime | grep -oP "^\d+") -lt $((3600*72)) ]] && return
(w -h | wc -l) && return
echo "Rebooting..."
w -h
cat /proc/uptime
while sudo pkill -SIGHUP buildbot-worker; do sleep 5; done;
shutdown now
sleep 1000
Expand Down

0 comments on commit f7f9360

Please sign in to comment.