-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrontab
9 lines (5 loc) · 786 Bytes
/
crontab
1
2
3
4
5
6
7
8
9
# 0 10 * * * root su - pi -c 'cd ~/ilp-commander/ && git pull --quiet' && cd /home/pi/ilp-commander/ && sh install_or_update.sh
11 10 * * * root find /var/log/supervisor/ -name 'ilp-commander-*' -mtime -1 | xargs tail -n 60 -q | mail -E -s "ilp-commander output" pi
35 * * * * pi curl -fs --retry 8 `cd ~/ilp-commander/ && python -c 'import config; print(config.HEALTHCHECK_URL_CRON)'` > /dev/null
12 10 * * * pi grep ERROR ~/ilp-commander/poller.log ~/ilp-commander/poller.log.1 | egrep -o 'ERROR.*' | cut -c-200 | sort | uniq -c | awk '$1>5' | mail -E -s "ilp-commander log errors" pi
12 10 * * * pi grep WARNING ~/ilp-commander/poller.log ~/ilp-commander/poller.log.1 | egrep -o 'WARNING.*' | cut -c-200 | sort | uniq -c | awk '$1>0' | mail -E -s "ilp-commander log warnings" pi