aboutsummaryrefslogtreecommitdiff
path: root/straper/db/public/cron/cron.d
diff options
context:
space:
mode:
Diffstat (limited to 'straper/db/public/cron/cron.d')
-rw-r--r--straper/db/public/cron/cron.d/.placeholder2
-rw-r--r--straper/db/public/cron/cron.d/anacron6
-rw-r--r--straper/db/public/cron/cron.d/certbot17
-rw-r--r--straper/db/public/cron/cron.d/e2scrub_all2
-rw-r--r--straper/db/public/cron/cron.d/zfs-auto-snapshot3
-rw-r--r--straper/db/public/cron/cron.d/zfsutils-linux7
6 files changed, 37 insertions, 0 deletions
diff --git a/straper/db/public/cron/cron.d/.placeholder b/straper/db/public/cron/cron.d/.placeholder
new file mode 100644
index 0000000..76cb8d0
--- /dev/null
+++ b/straper/db/public/cron/cron.d/.placeholder
@@ -0,0 +1,2 @@
+# DO NOT EDIT OR REMOVE
+# This file is a simple placeholder to keep dpkg from removing this directory
diff --git a/straper/db/public/cron/cron.d/anacron b/straper/db/public/cron/cron.d/anacron
new file mode 100644
index 0000000..57b33c5
--- /dev/null
+++ b/straper/db/public/cron/cron.d/anacron
@@ -0,0 +1,6 @@
+# /etc/cron.d/anacron: crontab entries for the anacron package
+
+SHELL=/bin/sh
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+30 7-23 * * * root if [ -x /etc/init.d/anacron ] && ! [ -d /run/systemd/system ]; then exec /usr/sbin/invoke-rc.d anacron start >/dev/null; fi
diff --git a/straper/db/public/cron/cron.d/certbot b/straper/db/public/cron/cron.d/certbot
new file mode 100644
index 0000000..cac009f
--- /dev/null
+++ b/straper/db/public/cron/cron.d/certbot
@@ -0,0 +1,17 @@
+# /etc/cron.d/certbot: crontab entries for the certbot package
+#
+# Upstream recommends attempting renewal twice a day
+#
+# Eventually, this will be an opportunity to validate certificates
+# haven't been revoked, etc. Renewal will only occur if expiration
+# is within 30 days.
+#
+# Important Note! This cronjob will NOT be executed if you are
+# running systemd as your init system. If you are running systemd,
+# the cronjob.timer function takes precedence over this cronjob. For
+# more details, see the systemd.timer manpage, or use systemctl show
+# certbot.timer.
+SHELL=/bin/sh
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew --no-random-sleep-on-renew
diff --git a/straper/db/public/cron/cron.d/e2scrub_all b/straper/db/public/cron/cron.d/e2scrub_all
new file mode 100644
index 0000000..7af25f1
--- /dev/null
+++ b/straper/db/public/cron/cron.d/e2scrub_all
@@ -0,0 +1,2 @@
+30 3 * * 0 root test -e /run/systemd/system || SERVICE_MODE=1 /usr/libexec/e2fsprogs/e2scrub_all_cron
+10 3 * * * root test -e /run/systemd/system || SERVICE_MODE=1 /sbin/e2scrub_all -A -r
diff --git a/straper/db/public/cron/cron.d/zfs-auto-snapshot b/straper/db/public/cron/cron.d/zfs-auto-snapshot
new file mode 100644
index 0000000..613afc9
--- /dev/null
+++ b/straper/db/public/cron/cron.d/zfs-auto-snapshot
@@ -0,0 +1,3 @@
+PATH="/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
+
+*/15 * * * * root which zfs-auto-snapshot > /dev/null || exit 0 ; zfs-auto-snapshot --quiet --syslog --label=frequent --keep=4 //
diff --git a/straper/db/public/cron/cron.d/zfsutils-linux b/straper/db/public/cron/cron.d/zfsutils-linux
new file mode 100644
index 0000000..4c0d373
--- /dev/null
+++ b/straper/db/public/cron/cron.d/zfsutils-linux
@@ -0,0 +1,7 @@
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+# TRIM the first Sunday of every month.
+24 0 1-7 * * root if [ $(date +\%w) -eq 0 ] && [ -x /usr/lib/zfs-linux/trim ]; then /usr/lib/zfs-linux/trim; fi
+
+# Scrub the second Sunday of every month.
+24 0 8-14 * * root if [ $(date +\%w) -eq 0 ] && [ -x /usr/lib/zfs-linux/scrub ]; then /usr/lib/zfs-linux/scrub; fi