systemd: add reflector.service

This commit is contained in:
Aminda Suomalainen 2015-08-25 14:13:44 +03:00
parent 3d5360c706
commit ae6651cd47
2 changed files with 15 additions and 0 deletions

View File

@ -3,6 +3,10 @@ subdirectories. The sudirectories won't exist in the real
`/etc/systemd/system` unless they end `.wants` or something similar
and I forget to update this README file if that happens.
* reflector.service is copied from https://wiki.archlinux.org/index.php/Reflector
but uses https instead of http, because there is no reason I would want
someone to see what I download.
## Worth reading
* Waiting for network devices to have IP address (**I only use this for

View File

@ -0,0 +1,11 @@
[Unit]
Description=Pacman mirrorlist update
Requires=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/reflector --protocol https --latest 30 --number 20 --sort rate --save /etc/pacman.d/mirrorlist
[Install]
RequiredBy=multi-user.target