Blame SOURCES/0050-multipathd-Fix-multipathd-stopping-on-shutdown.patch

b7337d
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
b7337d
From: Benjamin Marzinski <bmarzins@redhat.com>
b7337d
Date: Mon, 14 Dec 2020 14:16:29 -0600
b7337d
Subject: [PATCH] multipathd: Fix multipathd stopping on shutdown
b7337d
b7337d
According to man "systemd.special"
b7337d
b7337d
"shutdown.target: ... Services that shall be terminated on system
b7337d
shutdown shall add Conflicts= and Before= dependencies to this unit for
b7337d
their service unit, which is implicitly done when
b7337d
DefaultDependencies=yes is set (the default)."
b7337d
b7337d
multipathd.service sets DefaultDependencies=no and includes the
b7337d
Conflits= dependency, but not the Before= one. This can cause multipathd
b7337d
to continue running past when it is supposed to during shutdown.
b7337d
b7337d
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
b7337d
---
b7337d
 multipathd/multipathd.service | 2 +-
b7337d
 1 file changed, 1 insertion(+), 1 deletion(-)
b7337d
b7337d
diff --git a/multipathd/multipathd.service b/multipathd/multipathd.service
b7337d
index 0fbcc46b..bc8fa07a 100644
b7337d
--- a/multipathd/multipathd.service
b7337d
+++ b/multipathd/multipathd.service
b7337d
@@ -2,7 +2,7 @@
b7337d
 Description=Device-Mapper Multipath Device Controller
b7337d
 Wants=systemd-udev-trigger.service systemd-udev-settle.service
b7337d
 Before=iscsi.service iscsid.service lvm2-activation-early.service
b7337d
-Before=local-fs-pre.target blk-availability.service
b7337d
+Before=local-fs-pre.target blk-availability.service shutdown.target
b7337d
 After=multipathd.socket systemd-udev-trigger.service systemd-udev-settle.service
b7337d
 ConditionPathExists=/etc/multipath.conf
b7337d
 DefaultDependencies=no
b7337d
-- 
b7337d
2.17.2
b7337d