############################################################################
# /etc/crontab
#
# Cronjobs für HairWare.Spiegel.
# 
# --------------------------------------------------------------------------
# Version:  $Id$
# Erstellt: 11.03.2018 Daniel Schwarz *1977 Bochum
############################################################################
MAILTO=""
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/HairWare/Salon/bin:/opt/HairWare/Spiegel/bin/

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

# Alle 2 minuten Screenshoots Synchronisieren, zwischen 07:00 und 22:00 Uhr
*/2 7-22    * * *   root    /opt/HairWare/Spiegel/bin/sync_screenshoots.sh >> /var/log/sync_screenshoots.log

# Einmal zu jeder vollen Stunde Videos Synchronisieren, zwischen 07:00 und 22:00 Uhr
0 7-22    * * *   root    /opt/HairWare/Spiegel/bin/update_videos.sh >> /var/log/update_videos.log

# Reboot jeden Tag um 03:00 Uhr, hierdurch wird auch die Software aktualisiert
0 3    * * *   root    /sbin/spiegel_reboot.sh

# Alle 5 Minuten zwischen 7:00 Uhr und 22:00 Uhr die Temperatur messen und loggen
*/5 7-22    * * *   root    /opt/HairWare/Spiegel/bin/temperatur.sh >> /var/log/temperatur.log
