2014-06-07 05:11:38 +00:00
|
|
|
From 4a01af95296882e364499728329a1f5bff05cc93 Mon Sep 17 00:00:00 2001
|
2014-04-16 08:48:33 +00:00
|
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
|
|
Date: Wed, 16 Apr 2014 09:35:28 +0200
|
2014-06-07 05:11:38 +00:00
|
|
|
Subject: [PATCH] 90multipath: Fixup service file for booting
|
2014-04-16 08:48:33 +00:00
|
|
|
|
|
|
|
'Type=forking' caused systemd to immediately terminate the
|
|
|
|
entire process, and not creating any device maps.
|
|
|
|
So we should be using 'Type=simple' here.
|
|
|
|
|
|
|
|
References: bnc#873686
|
|
|
|
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
|
|
---
|
|
|
|
modules.d/90multipath/module-setup.sh | 4 ++--
|
|
|
|
modules.d/90multipath/multipathd.service | 4 ++--
|
|
|
|
2 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/modules.d/90multipath/module-setup.sh b/modules.d/90multipath/module-setup.sh
|
|
|
|
index 508241e..0149df9 100755
|
|
|
|
--- a/modules.d/90multipath/module-setup.sh
|
|
|
|
+++ b/modules.d/90multipath/module-setup.sh
|
|
|
|
@@ -92,8 +92,8 @@ install() {
|
|
|
|
|
|
|
|
if dracut_module_included "systemd"; then
|
|
|
|
inst_simple "${moddir}/multipathd.service" "${systemdsystemunitdir}/multipathd.service"
|
|
|
|
- mkdir -p "${initdir}${systemdsystemconfdir}/sysinit.target.wants"
|
|
|
|
- ln -rfs "${initdir}${systemdsystemunitdir}/multipathd.service" "${initdir}${systemdsystemconfdir}/sysinit.target.wants/multipathd.service"
|
|
|
|
+ mkdir -p "${initdir}${systemdsystemunitdir}/sysinit.target.wants"
|
|
|
|
+ ln -rfs "${initdir}${systemdsystemunitdir}/multipathd.service" "${initdir}${systemdsystemunitdir}/sysinit.target.wants/multipathd.service"
|
|
|
|
else
|
|
|
|
inst_hook pre-trigger 02 "$moddir/multipathd.sh"
|
|
|
|
inst_hook cleanup 02 "$moddir/multipathd-stop.sh"
|
|
|
|
diff --git a/modules.d/90multipath/multipathd.service b/modules.d/90multipath/multipathd.service
|
2014-06-07 05:11:38 +00:00
|
|
|
index e9318f5..44a7b80 100644
|
2014-04-16 08:48:33 +00:00
|
|
|
--- a/modules.d/90multipath/multipathd.service
|
|
|
|
+++ b/modules.d/90multipath/multipathd.service
|
|
|
|
@@ -5,9 +5,9 @@ DefaultDependencies=no
|
|
|
|
Conflicts=shutdown.target
|
2014-06-07 05:11:38 +00:00
|
|
|
|
2014-04-16 08:48:33 +00:00
|
|
|
[Service]
|
|
|
|
-Type=forking
|
|
|
|
+Type=simple
|
|
|
|
ExecStartPre=/sbin/modprobe dm-multipath
|
|
|
|
-ExecStart=/sbin/multipathd
|
|
|
|
+ExecStart=/sbin/multipathd -s -d
|
|
|
|
ExecReload=/sbin/multipathd reconfigure
|
|
|
|
ExecStop=/sbin/multipathd shutdown
|
|
|
|
|
|
|
|
--
|
2014-06-07 05:11:38 +00:00
|
|
|
1.8.4.5
|
2014-04-16 08:48:33 +00:00
|
|
|
|