From 7e3367d04dd53eeb0cb451363974468f48ab8021 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Thu, 11 Jan 2018 10:00:34 +0100 Subject: [PATCH] cron: count the number of files in the error dir Signed-off-by: Janos SUTO --- etc/cron.jobs.in | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/cron.jobs.in b/etc/cron.jobs.in index 0e24eaa9..40377b2f 100644 --- a/etc/cron.jobs.in +++ b/etc/cron.jobs.in @@ -5,6 +5,7 @@ */15 * * * * /usr/bin/indexer --config SYSCONFDIR/piler/sphinx.conf --quiet tag1 --rotate */15 * * * * /usr/bin/indexer --config SYSCONFDIR/piler/sphinx.conf --quiet note1 --rotate */5 * * * * /usr/bin/find LOCALSTATEDIR/piler/www/tmp -type f -name i.\* -exec rm -f {} \; +*/5 * * * * /usr/bin/find LOCALSTATEDIR/piler/error -type f|wc -l > LOCALSTATEDIR/piler/stat/error ### optional: the same report you can see on the health page ###30 7 * * * /usr/bin/php LIBEXECDIR/piler/daily-report.php --webui LOCALSTATEDIR/piler/www