|
|
c4b4b8 |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
c4b4b8 |
From: Luca BRUNO <luca.bruno@coreos.com>
|
|
|
c4b4b8 |
Date: Fri, 24 Sep 2021 09:34:01 +0000
|
|
|
c4b4b8 |
Subject: [PATCH] multipathd.socket: add missing conditions from service unit
|
|
|
c4b4b8 |
|
|
|
c4b4b8 |
Upstream Status: https://github.com/openSUSE/multipath-tools.git
|
|
|
c4b4b8 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2008101
|
|
|
c4b4b8 |
Conflicts: Match the conditions with RHEL-8 multipathd.service unit
|
|
|
c4b4b8 |
|
|
|
c4b4b8 |
commit 345ccf564ce7d904641bd32baf4fc53c2283d95c
|
|
|
c4b4b8 |
Author: Luca BRUNO <luca.bruno@coreos.com>
|
|
|
c4b4b8 |
Date: Fri Sep 24 09:34:01 2021 +0000
|
|
|
c4b4b8 |
|
|
|
c4b4b8 |
multipathd.socket: add missing conditions from service unit
|
|
|
c4b4b8 |
|
|
|
c4b4b8 |
This aligns 'multipathd' socket and service units, by adding the
|
|
|
c4b4b8 |
start conditions that are set on the service but not on the socket.
|
|
|
c4b4b8 |
It should help avoiding situations where the socket unit ends up
|
|
|
c4b4b8 |
marked as failed after hitting its retry-limit.
|
|
|
c4b4b8 |
|
|
|
c4b4b8 |
Fixes: https://github.com/opensvc/multipath-tools/issues/15
|
|
|
c4b4b8 |
Signed-off-by: Luca BRUNO <luca.bruno@coreos.com>
|
|
|
c4b4b8 |
Reviewed-by: Martin Wilck <mwilck@suse.com>
|
|
|
c4b4b8 |
|
|
|
c4b4b8 |
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
|
c4b4b8 |
---
|
|
|
c4b4b8 |
multipathd/multipathd.socket | 3 +++
|
|
|
c4b4b8 |
1 file changed, 3 insertions(+)
|
|
|
c4b4b8 |
|
|
|
c4b4b8 |
diff --git a/multipathd/multipathd.socket b/multipathd/multipathd.socket
|
|
|
c4b4b8 |
index 0ed4a1f7..c62c0fc8 100644
|
|
|
c4b4b8 |
--- a/multipathd/multipathd.socket
|
|
|
c4b4b8 |
+++ b/multipathd/multipathd.socket
|
|
|
c4b4b8 |
@@ -1,6 +1,9 @@
|
|
|
c4b4b8 |
[Unit]
|
|
|
c4b4b8 |
Description=multipathd control socket
|
|
|
c4b4b8 |
DefaultDependencies=no
|
|
|
c4b4b8 |
+ConditionPathExists=/etc/multipath.conf
|
|
|
c4b4b8 |
+ConditionKernelCommandLine=!nompath
|
|
|
c4b4b8 |
+ConditionKernelCommandLine=!multipath=off
|
|
|
c4b4b8 |
Before=sockets.target
|
|
|
c4b4b8 |
|
|
|
c4b4b8 |
[Socket]
|