Blame SOURCES/0024-minor-service-file-updates.patch

1a76fd
From b8c6c1f3bed0e5fcc0d02c56834fa60850a11b5f Mon Sep 17 00:00:00 2001
1a76fd
From: Chris Leech <cleech@redhat.com>
1a76fd
Date: Thu, 18 Feb 2021 14:04:32 -0800
1a76fd
Subject: [PATCH 1/1] minor service file updates
1a76fd
1a76fd
Intended use is with system presets to enable the following:
1a76fd
  iscsi.service - login of automatic node records
1a76fd
  iscsid.socket - start iscsid as needed for all iSCSI sessions
1a76fd
  iscsiuio.socket - start iscsiuio as needed for bnx2i or qedi
1a76fd
  iscsi-onboot.service - special handling of initramfs sessions
1a76fd
1a76fd
The following are started automatically as needed:
1a76fd
  iscsid.service - needed for all iSCSI sessions
1a76fd
  iscsiuio.service - needed for bnx2i or qedi offload
1a76fd
  iscsi-init.service - create an iSCSI name if missing before starting iscsid
1a76fd
  iscsi-shutdown.service - ensure all non-boot sessions logout at shutdown
1a76fd
---
1a76fd
 etc/systemd/iscsi-init.service | 1 +
1a76fd
 etc/systemd/iscsi.service      | 2 +-
1a76fd
 etc/systemd/iscsid.service     | 3 +--
1a76fd
 3 files changed, 3 insertions(+), 3 deletions(-)
1a76fd
1a76fd
diff --git a/etc/systemd/iscsi-init.service b/etc/systemd/iscsi-init.service
1a76fd
index e058ff0..c3370ec 100644
1a76fd
--- a/etc/systemd/iscsi-init.service
1a76fd
+++ b/etc/systemd/iscsi-init.service
1a76fd
@@ -1,6 +1,7 @@
1a76fd
 [Unit]
1a76fd
 Description=One time configuration for iscsi.service
1a76fd
 ConditionPathExists=!/etc/iscsi/initiatorname.iscsi
1a76fd
+Before=iscsid.service
1a76fd
 
1a76fd
 [Service]
1a76fd
 Type=oneshot
1a76fd
diff --git a/etc/systemd/iscsi.service b/etc/systemd/iscsi.service
1a76fd
index 175cb2c..6c542d2 100644
1a76fd
--- a/etc/systemd/iscsi.service
1a76fd
+++ b/etc/systemd/iscsi.service
1a76fd
@@ -4,7 +4,7 @@ Documentation=man:iscsiadm(8) man:iscsid(8)
1a76fd
 DefaultDependencies=no
1a76fd
 Before=remote-fs-pre.target
1a76fd
 After=network.target network-online.target iscsid.service iscsiuio.service systemd-remount-fs.service
1a76fd
-Wants=remote-fs-pre.target iscsi-shutdown.service
1a76fd
+Wants=remote-fs-pre.target
1a76fd
 ConditionDirectoryNotEmpty=/var/lib/iscsi/nodes
1a76fd
 
1a76fd
 [Service]
1a76fd
diff --git a/etc/systemd/iscsid.service b/etc/systemd/iscsid.service
1a76fd
index 324c593..df0bd83 100644
1a76fd
--- a/etc/systemd/iscsid.service
1a76fd
+++ b/etc/systemd/iscsid.service
1a76fd
@@ -4,7 +4,7 @@ Documentation=man:iscsid(8) man:iscsiuio(8) man:iscsiadm(8)
1a76fd
 DefaultDependencies=no
1a76fd
 After=network-online.target iscsiuio.service iscsi-init.service
1a76fd
 Before=remote-fs-pre.target
1a76fd
-Requires=iscsi-init.service
1a76fd
+Requires=iscsi-init.service iscsi-shutdown.service
1a76fd
 
1a76fd
 [Service]
1a76fd
 Type=notify
1a76fd
@@ -15,4 +15,3 @@ Restart=on-failure
1a76fd
 
1a76fd
 [Install]
1a76fd
 WantedBy=multi-user.target
1a76fd
-Also=iscsid.socket
1a76fd
-- 
1a76fd
2.26.3
1a76fd