units: make sure systemd-pstore stops at shutdown
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Apr 2020 14:25:03 +0000 (16:25 +0200)
committerMichael Biebl <biebl@debian.org>
Sun, 17 May 2020 17:28:49 +0000 (18:28 +0100)
This doesn't matter too much given that the service doesn't do anything
on shutdown, but let's still stop it to make things cleaner.

(cherry picked from commit b0c1a07654c80d3cbbbcc52f860d4206707c0b08)

Gbp-Pq: Name units-make-sure-systemd-pstore-stops-at-shutdown.patch

units/systemd-pstore.service.in

index f9705b57f6f127eeccde1316ad756b0367d38e4e..6e4827f03c8632f990a3ded3a5cb7649ff26619d 100644 (file)
@@ -13,7 +13,8 @@ Documentation=man:systemd-pstore(8)
 ConditionDirectoryNotEmpty=/sys/fs/pstore
 ConditionVirtualization=!container
 DefaultDependencies=no
-Before=sysinit.target
+Conflicts=shutdown.target
+Before=sysinit.target shutdown.target
 
 [Service]
 Type=oneshot