feat: configure cron for alpine
This commit is contained in:
parent
6c21b4bfea
commit
1a5ce09b16
3 changed files with 24 additions and 2 deletions
10
templates/cron/alpine-root.j2
Normal file
10
templates/cron/alpine-root.j2
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# do daily/weekly/monthly maintenance
|
||||
# min hour day month weekday command
|
||||
*/15 * * * * run-parts /etc/periodic/15min
|
||||
0 * * * * run-parts /etc/periodic/hourly
|
||||
0 2 * * * run-parts /etc/periodic/daily
|
||||
0 3 * * 6 run-parts /etc/periodic/weekly
|
||||
0 5 1 * * run-parts /etc/periodic/monthly
|
||||
|
||||
# update packages between 3:15-3:30 am
|
||||
15 3 * * * sleep $(($RANDOM % 900)) && apk -U upgrade >/dev/null 2>&1 && apk clean cache && reboot -d 60
|
||||
Loading…
Add table
Add a link
Reference in a new issue