summaryrefslogtreecommitdiffstats
path: root/units
diff options
context:
space:
mode:
authorAlexander Sverdlin <alexander.sverdlin@gmail.com>2021-04-19 01:53:45 +0200
committerLennart Poettering <lennart@poettering.net>2021-04-29 21:45:23 +0200
commit4e947bd04944e58df4103eee4cb8180b5008f143 (patch)
tree637a06cf8a9e9cac996bf30cd21972c4e753d289 /units
parentMerge pull request #19458 from yuwata/network-route-remove (diff)
downloadsystemd-4e947bd04944e58df4103eee4cb8180b5008f143.tar.xz
systemd-4e947bd04944e58df4103eee4cb8180b5008f143.zip
systemd-coredump: Add conflict with shutdown.target
Otherwise a coredump started at the inconvinient moment can stop shutdown.target leaving the system in a halfway-down state: Pulling in shutdown.target/start from systemd-poweroff.service/start Added job shutdown.target/start to transaction. ... Keeping job shutdown.target/start because of systemd-poweroff.service/start ... [ OK ] Stopped target Remote File Systems. shutdown.target: starting held back, waiting for: systemd-networkd.socket sysinit.target: stopping held back, waiting for: remount_tmp.service systemd-coredump.socket: Incoming traffic ... systemd-coredump@0-243-0.service: Trying to enqueue job systemd-coredump@0-243-0.service/start/replace Added job systemd-coredump@0-243-0.service/start to transaction. Pulling in systemd-journald.socket/start from systemd-coredump@0-243-0.service/start Added job systemd-journald.socket/start to transaction. Pulling in system.slice/start from systemd-journald.socket/start Added job system.slice/start to transaction. Pulling in -.slice/start from system.slice/start Added job -.slice/start to transaction. Pulling in system-systemd\x2dcoredump.slice/start from systemd-coredump@0-243-0.service/start Added job system-systemd\x2dcoredump.slice/start to transaction. Pulling in system.slice/start from system-systemd\x2dcoredump.slice/start Pulling in shutdown.target/stop from system-systemd\x2dcoredump.slice/start Added job shutdown.target/stop to transaction. ... Keeping job systemd-poweroff.service/stop because of umount.target/stop Keeping job shutdown.target/stop because of systemd-coredump@0-243-0.service/start
Diffstat (limited to 'units')
-rw-r--r--units/systemd-coredump.socket2
1 files changed, 2 insertions, 0 deletions
diff --git a/units/systemd-coredump.socket b/units/systemd-coredump.socket
index 922358fe5d..565374698d 100644
--- a/units/systemd-coredump.socket
+++ b/units/systemd-coredump.socket
@@ -11,6 +11,8 @@
Description=Process Core Dump Socket
Documentation=man:systemd-coredump(8)
DefaultDependencies=no
+Before=shutdown.target
+Conflicts=shutdown.target
[Socket]
ListenSequentialPacket=/run/systemd/coredump