aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/update-mirrorlist.service11
-rw-r--r--system/update-mirrorlist.timer10
2 files changed, 21 insertions, 0 deletions
diff --git a/system/update-mirrorlist.service b/system/update-mirrorlist.service
new file mode 100644
index 0000000..9766df6
--- /dev/null
+++ b/system/update-mirrorlist.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Update pacman mirrorlist
+After=local-fs.target
+ConditionFileIsExecutable=/usr/bin/update-mirrorlist
+
+[Service]
+Nice=19
+IOSchedulingClass=2
+IOSchedulingPriority=7
+ExecStart=/usr/bin/update-mirrorlist
+
diff --git a/system/update-mirrorlist.timer b/system/update-mirrorlist.timer
new file mode 100644
index 0000000..72d3688
--- /dev/null
+++ b/system/update-mirrorlist.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Update pacman mirrorlist every Monday at 05:00
+
+[Timer]
+# Every Monday at 05:00
+OnCalendar=Mon *-*-* 05:00
+Persistent=true
+
+[Install]
+WantedBy=timers.target