aboutsummaryrefslogtreecommitdiffstats
path: root/roles/host/templates/etc_crontab.j2
blob: de1f3c6ed14570cf49c4050c44752df57694bd2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# /etc/crontab - root's crontab for FreeBSD
#
#
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
#
#minute hour    mday    month   wday    who     command
#
# Save some entropy so that /dev/random can re-seed on boot.
*/11    *       *       *       *       operator /usr/libexec/save-entropy
#
# Rotate log files every hour, if necessary.
0       *       *       *       *       root    newsyslog
#
# Perform daily/weekly/monthly maintenance.
1       3       *       *       *       root    periodic daily
15      4       *       *       6       root    periodic weekly
30      5       1       *       *       root    periodic monthly
#
# Adjust the time zone if the CMOS clock keeps local time, as opposed to
# UTC time.  See adjkerntz(8) for details.
1,31    0-5     *       *       *       root    adjkerntz -a

# Take snapshots every day at 3:05 AM
5       3       *       *       *       root    logto /var/log/backup /usr/local/bin/backup snapshot prune-local
# Send backup snapshots to remote every third day at 4:05 AM
5       4       */3     *       *       root    logto /var/log/backup /usr/local/bin/backup send-to-remote prune-remote notify

# Run pylogmonitor
*/10    *       *       *       *       root    python -m pylogsentinel
# Run pylogsentinel batch job once a day
5       6       *       *       *       root    /usr/local/bin/pylogsentinel-batch-email.sh