From: martin f. krafft Date: Sun, 3 Jan 2010 01:00:12 +0000 (+1300) Subject: reschedule, and use ionice/nice and route detection X-Git-Url: https://git.madduck.net/etc/offlineimap.git/commitdiff_plain/165b88a3f5ec745613a32c9b569003138bafb46e reschedule, and use ionice/nice and route detection --- 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