From b7dea94f3113963cc7e4ec54f1a65c1fa4fc3369 Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Fri, 5 Apr 2013 18:53:59 +0200 Subject: Start misc files, crontab "cherry pick what you need" being the first MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- misc/crontab | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 misc/crontab (limited to 'misc') diff --git a/misc/crontab b/misc/crontab new file mode 100644 index 0000000..d4296f6 --- /dev/null +++ b/misc/crontab @@ -0,0 +1,2 @@ +# sync IMAP store every 5min for offline use +*/5 * * * * test $(ps -eo etimes,args | grep offlineimap | grep -v grep | awk '{print $1}END{if(NR==0){print 0}}') -gt 300 && killall -9 offlineimap; offlineimap -q -u quiet -- cgit