summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rw-r--r--systemd/pacman-offline-prepare.service1
-rw-r--r--systemd/pacman-offline-prepare.timer1
2 files changed, 2 insertions, 0 deletions
diff --git a/systemd/pacman-offline-prepare.service b/systemd/pacman-offline-prepare.service
index 59cc76f..b5f5ef1 100644
--- a/systemd/pacman-offline-prepare.service
+++ b/systemd/pacman-offline-prepare.service
@@ -1,5 +1,6 @@
[Unit]
Description=Prepare pacman offline system-update
+ConditionPathExists=!/var/lib/pacman/db.lck
[Service]
Type=oneshot
diff --git a/systemd/pacman-offline-prepare.timer b/systemd/pacman-offline-prepare.timer
index 75ce355..313b8cc 100644
--- a/systemd/pacman-offline-prepare.timer
+++ b/systemd/pacman-offline-prepare.timer
@@ -1,5 +1,6 @@
[Unit]
Description=Prepare pacman offline system-update
+ConditionPathExists=!/var/lib/pacman/db.lck
[Timer]
OnBootSec=5min