summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-04-08 16:25:03 +0200
committerLennart Poettering <lennart@poettering.net>2020-04-08 16:29:58 +0200
commitb0c1a07654c80d3cbbbcc52f860d4206707c0b08 (patch)
tree5269872bfcfb092367f2c9f9c5bf2383693023bb
parente0f968ad96e9a6340edced8e22089c802c2f6497 (diff)
downloadsystemd-b0c1a07654c80d3cbbbcc52f860d4206707c0b08.tar.gz
units: make sure systemd-pstore stops at shutdown
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.
-rw-r--r--units/systemd-pstore.service.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/units/systemd-pstore.service.in b/units/systemd-pstore.service.in
index f9705b57f6..6e4827f03c 100644
--- a/units/systemd-pstore.service.in
+++ b/units/systemd-pstore.service.in
@@ -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