From 9a15f7503daed6ea78705c52aa4970a4cd99c738 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 9 Oct 2017 09:19:11 +0200 Subject: remove lockfile on stop This is our lockfile, so clean up if service is stopped. --- systemd/pacman-offline-prepare.service | 1 + 1 file changed, 1 insertion(+) (limited to 'systemd') 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 -- cgit v1.2.3-70-g09d2