aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-03-21 21:46:44 +0100
committerDavid Runge <dave@sleepmap.de>2015-03-21 21:46:44 +0100
commite73b7a884cfa7721f3aac45afc0ac2ae20904dc8 (patch)
treef6201dfb8a2f0aa56264a1f4434d066dc741e28e
parente7b38d62250b08beb875c7dd99ead217c74e225a (diff)
downloaduenv-e73b7a884cfa7721f3aac45afc0ac2ae20904dc8.tar.gz
uenv-e73b7a884cfa7721f3aac45afc0ac2ae20904dc8.tar.bz2
uenv-e73b7a884cfa7721f3aac45afc0ac2ae20904dc8.tar.xz
uenv-e73b7a884cfa7721f3aac45afc0ac2ae20904dc8.zip
update-mirrorlist.{service,timer}: Adding systemd service and timer files for updating pacman's mirrorlist using update-mirrorlist (if installed).
-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