1
0
Fork 0

add 'pacman -Sc' to root crontab and improve output redirection

This commit is contained in:
Pratham Patel 2023-03-12 17:23:28 +05:30
parent 84ea83dbf0
commit 60cf55b753
1 changed files with 6 additions and 5 deletions

View File

@ -6,15 +6,16 @@
################################################################################
ROOT_CRONTAB="# remove cache every 2 hours and update local db
0 */2 * * * paccache -r > /dev/null
0 * * * * pacman --sync --refresh > /dev/null
0 * * * * pacman --files --refresh > /dev/null
0 */2 * * * paccache -r > /dev/null 2>&1
0 */2 * * * pacman -Sc > /dev/null 2>&1
0 * * * * pacman --sync --refresh > /dev/null 2>&1
0 * * * * pacman --files --refresh > /dev/null 2>&1
# update the on-disk database every 6 hours
0 */6 * * * updatedb > /dev/null
0 */6 * * * updatedb > /dev/null 2>&1
# zfs scrub
0 12 1,15 * * /usr/bin/zpool scrub > /dev/null
0 12 1,15 * * /usr/bin/zpool scrub > /dev/null 2>&1
"
################################################################################