aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-10-09 09:19:11 +0200
committerGravatar Christian Hesse <mail@eworm.de>2017-10-09 09:19:11 +0200
commit9a15f7503daed6ea78705c52aa4970a4cd99c738 (patch)
tree863da2e371b8d4a374b1be1aebb74e4815c8e76d
parentac1f6b58977fc3981cbec495fe37307d6ca948b9 (diff)
downloadpacman-offline-9a15f7503daed6ea78705c52aa4970a4cd99c738.tar.gz
pacman-offline-9a15f7503daed6ea78705c52aa4970a4cd99c738.tar.zst
remove lockfile on stop
This is our lockfile, so clean up if service is stopped.
-rw-r--r--systemd/pacman-offline-prepare.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/systemd/pacman-offline-prepare.service b/systemd/pacman-offline-prepare.service
index b5f5ef1..3df9685 100644
--- a/systemd/pacman-offline-prepare.service
+++ b/systemd/pacman-offline-prepare.service
@@ -5,6 +5,7 @@ ConditionPathExists=!/var/lib/pacman/db.lck
[Service]
Type=oneshot
ExecStart=/usr/bin/pacman-offline -y
+ExecStopPost=/usr/bin/rm -f /var/lib/pacman/db.lck
ProtectSystem=on
ProtectHome=on
PrivateDevices=on