]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - continuous/cron.sh
continuous: We need longer timeout
[can-benchmark.git] / continuous / cron.sh
index 6b951aab7699cac763f037c25b7ba8f5f678f02a..5ca3e6824f9b23ce9aee81e412a487945831cfa4 100755 (executable)
@@ -8,7 +8,7 @@ cd $(dirname $0)
 
 # Wakeup glab
 sudo /usr/sbin/etherwake 00:0c:f1:77:ec:46
-while ! ssh sojka@glab true; do sleep 1; done
+chronic timeout 5m sh -c 'while ! ssh sojka@glab true; do sleep 1; done'
 sleep 30 # Wait a bit to finish all boot jobs etc.
 
 mkdir -p logs
@@ -25,4 +25,4 @@ make -C www --silent publish
 
 ( cd logs && git add $LOG && git commit --quiet -m 'Automatic commit' && git push --quiet )
 
-ssh -f sojka@glab 'sudo /sbin/poweroff
+ssh -f sojka@glab 'sudo /sbin/poweroff'