# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user	command
17 *	* * *	root	cd / && run-parts --report /etc/cron.hourly
01 0	* * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 1	* * 7	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 1	1 * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

# Tento radek zajistuje aktualizaci blacklistu SquidGuardu - nad ramec DP, presto pouzitelne - viz kapitola 5.10.2
1 0	* * 1	root	/usr/local/squidGuard/squidBLupdate.sh
#

# Tento radek zajistuje pripadne nahozeni ntopu - nad ramec DP, presto pouzitelne - viz kapitola 5.10.4
### Kdyby nahodou spad ntop tak se hned zase nahodi :)
* *	* * *	root	/bin/ps -A | /bin/grep "ntop" | /usr/bin/wc -l | /usr/bin/awk '{if ($1 == 0) system("service ntop start") }'

### Parsovani SQUID logu pro Lightsquid a agregovani domen pro usporu mista
*/30 *	* * *	root	/usr/share/lightsquid/lightparser.pl
39 *	* * *	root	date > /usr/share/lightsquid/tools/SiteAggregator/SiteAgregator.log
40 *	* * *	root	/usr/share/lightsquid/tools/SiteAggregator/SiteAgregator.pl >> /usr/share/lightsquid/tools/SiteAggregator/SiteAgregator.log

