From 165b88a3f5ec745613a32c9b569003138bafb46e Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 3 Jan 2010 14:00:12 +1300 Subject: [PATCH] reschedule, and use ionice/nice and route detection --- .crontab.d/offlineimap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.crontab.d/offlineimap b/.crontab.d/offlineimap index 09cee6a..d04722c 100644 --- a/.crontab.d/offlineimap +++ b/.crontab.d/offlineimap @@ -1,2 +1,2 @@ -*/15 * * * * sleep $((900 * $RANDOM / 32768)) && nice -20 /usr/bin/offlineimap -o -38 * * * * sleep $((60 * $RANDOM / 32768)) && nice -20 /usr/bin/offlineimap -oa logcheck +*/15 * * * * sleep $((900 * $RANDOM / 32768)) && ip r | grep via && ionice -c3 nice -20 offlineimap -o +38 */4 * * * sleep $((60 * $RANDOM / 32768)) && ip r | grep via && ionice -c3 nice -20 offlineimap -oa logcheck -- 2.39.5