Skip to content

Commit

Permalink
Update start_script.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka authored Apr 16, 2024
1 parent cacb0ea commit 7f15f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildbot/start_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function is_worker_connected() {
}

function shutdown_maybe() {
[[ $(cat /proc/uptime | grep -oP "^\d+") -lt 3600 ]] && return
[[ $(cat /proc/uptime | grep -oP "^\d+") -lt $((3600*72)) ]] && return
(w -h | wc -l) && return
while sudo pkill -SIGHUP buildbot-worker; do sleep 5; done;
shutdown now
Expand Down

0 comments on commit 7f15f7e

Please sign in to comment.