diff options
author | Christian Hesse <mail@eworm.de> | 2017-10-09 09:19:11 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-10-09 09:19:11 +0200 |
commit | 9a15f7503daed6ea78705c52aa4970a4cd99c738 (patch) | |
tree | 863da2e371b8d4a374b1be1aebb74e4815c8e76d /systemd/pacman-offline-prepare.service | |
parent | ac1f6b58977fc3981cbec495fe37307d6ca948b9 (diff) | |
download | pacman-offline-9a15f7503daed6ea78705c52aa4970a4cd99c738.tar.gz pacman-offline-9a15f7503daed6ea78705c52aa4970a4cd99c738.tar.zst |
remove lockfile on stop
This is our lockfile, so clean up if service is stopped.
Diffstat (limited to 'systemd/pacman-offline-prepare.service')
-rw-r--r-- | systemd/pacman-offline-prepare.service | 1 |
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 |