summaryrefslogtreecommitdiff
path: root/releng/airootfs/etc/systemd/system/reflector-once.service
diff options
context:
space:
mode:
Diffstat (limited to 'releng/airootfs/etc/systemd/system/reflector-once.service')
-rw-r--r--releng/airootfs/etc/systemd/system/reflector-once.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/releng/airootfs/etc/systemd/system/reflector-once.service b/releng/airootfs/etc/systemd/system/reflector-once.service
new file mode 100644
index 0000000..5a73044
--- /dev/null
+++ b/releng/airootfs/etc/systemd/system/reflector-once.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Update pacman mirrorlist with reflector
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/reflector -c HU --protocol https --sort rate --latest 20 --download-timeout 5 --threads 20 --save /etc/pacman.d/mirrorlist
+
+[Install]
+WantedBy=multi-user.target