]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Do not send emails from every cron job
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 6 Dec 2014 22:44:02 +0000 (23:44 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 6 Dec 2014 22:44:02 +0000 (23:44 +0100)
Send them only when glab cannot boot within 2 minutes.

continuous/cron.sh

index a7794cd2f6a45abc65094b70883b391716ce4e28..a65b9aa06f4a24d9f9530c0e6d3a96a154073dd2 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 2m 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