Skip to content

Commit

Permalink
Add sample configuration for cron
Browse files Browse the repository at this point in the history
See issue #7
  • Loading branch information
ema committed Nov 16, 2022
1 parent fd74910 commit c92d49e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sample_pet/cron/certbot
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# pets: destfile=/etc/cron.d/certbot, owner=root, group=root, mode=640
# pets: package=certbot
# pets: package=cron

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
5 changes: 5 additions & 0 deletions sample_pet/cron/mdadm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# pets: destfile=/etc/cron.d/mdadm, owner=root, group=root, mode=640
# pets: package=cron
# pets: package=mdadm

57 0 * * 0 root if [ -x /usr/share/mdadm/checkarray ] && [ $(date +\%d) -le 7 ]; then /usr/share/mdadm/checkarray --cron --all --idle --quiet; fi

0 comments on commit c92d49e

Please sign in to comment.