[dm-devel] [PATCH] multipathd.socket: add missing conditions from service unit

Luca BRUNO luca.bruno at coreos.com
Fri Sep 24 09:34:01 UTC 2021


This aligns 'multipathd' socket and service units, by adding the
start conditions that are set on the service but not on the socket.
It should help avoiding situations where the socket unit ends up
marked as failed after hitting its retry-limit.

Fixes: https://github.com/opensvc/multipath-tools/issues/15
Signed-off-by: Luca BRUNO <luca.bruno at coreos.com>
---
 multipathd/multipathd.socket | 3 +++
 1 file changed, 3 insertions(+)

diff --git multipathd/multipathd.socket multipathd/multipathd.socket
index 0ed4a1f7..c777e5e3 100644
--- multipathd/multipathd.socket
+++ multipathd/multipathd.socket
@@ -1,6 +1,9 @@
 [Unit]
 Description=multipathd control socket
 DefaultDependencies=no
+ConditionKernelCommandLine=!nompath
+ConditionKernelCommandLine=!multipath=off
+ConditionVirtualization=!container
 Before=sockets.target
 
 [Socket]
-- 
2.30.2




More information about the dm-devel mailing list