diff --git a/etc/systemd/system/README.md b/etc/systemd/system/README.md index 97505db1..ead36349 100644 --- a/etc/systemd/system/README.md +++ b/etc/systemd/system/README.md @@ -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 diff --git a/etc/systemd/system/reflector.service b/etc/systemd/system/reflector.service new file mode 100644 index 00000000..f29e6d7c --- /dev/null +++ b/etc/systemd/system/reflector.service @@ -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