It makes sense to run them as a system service, they require root to
download the packages and the actual download command may change making
it hard to configure in sudoers.
-# Requires following line in sudoers allowing users in wheel
-# to download packages without password
-# %wheel ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sw --noconfirm * --dbpath *
-
[Unit]
Description=Check pacman updates and dowload packages to cache
After=network-online.target
[Unit]
Description=Check pacman updates and dowload packages to cache
After=network-online.target