Created
December 20, 2017 21:48
-
-
Save valeth/133094c87690aa5addb1685287cb05c8 to your computer and use it in GitHub Desktop.
Pacman Updates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Pacman system updates | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/pacman -Sy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Pacman update timer | |
After=network.target | |
[Timer] | |
OnBootSec=5min | |
OnCalendar=hourly | |
[Install] | |
WantedBy=timers.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Pacman mirrorlist updater | |
After=network.target | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/reflector --protocol http --latest 30 --number 20 --sort rate --save /etc/pacman.d/mirrorlist | |
ExecStart=-/usr/bin/rm -v /etc/pacman.d/mirrorlist.pacnew |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Run reflector on boot and weekly | |
After=network.target | |
[Timer] | |
OnBootSec=5min | |
OnCalendar=weekly | |
Persistent=true | |
AccuracySec=12h | |
[Install] | |
WantedBy=timers.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment