Skip to content

Instantly share code, notes, and snippets.

@Manouchehri
Created November 28, 2017 20:56
Show Gist options
  • Select an option

  • Save Manouchehri/ae7417b58c6a5f7b61b9b78f59c68ec5 to your computer and use it in GitHub Desktop.

Select an option

Save Manouchehri/ae7417b58c6a5f7b61b9b78f59c68ec5 to your computer and use it in GitHub Desktop.
/etc/systemd/system/reflector.service
[Unit]
Description=Pacman mirrorlist update
Requires=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/reflector --protocol https --country 'United States' --country 'Canada' --age 2 --sort rate --save /etc/pacman.d/mirrorlist
[Install]
RequiredBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment