mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +01:00
systemd: add reflector.service
This commit is contained in:
parent
3d5360c706
commit
ae6651cd47
@ -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
|
||||
|
11
etc/systemd/system/reflector.service
Normal file
11
etc/systemd/system/reflector.service
Normal 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
|
Loading…
Reference in New Issue
Block a user