From e73b7a884cfa7721f3aac45afc0ac2ae20904dc8 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 21 Mar 2015 21:46:44 +0100 Subject: update-mirrorlist.{service,timer}: Adding systemd service and timer files for updating pacman's mirrorlist using update-mirrorlist (if installed). --- system/update-mirrorlist.service | 11 +++++++++++ system/update-mirrorlist.timer | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 system/update-mirrorlist.service create mode 100644 system/update-mirrorlist.timer (limited to 'system') 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 -- cgit v1.2.3-70-g09d2