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