|
|
3d2430 |
From 0c8744b08e717e011eb51fe663a4db33c9c0f9b0 Mon Sep 17 00:00:00 2001
|
|
|
3d2430 |
From: rpm-build <rpm-build>
|
|
|
3d2430 |
Date: Wed, 16 Oct 2019 16:27:38 -0700
|
|
|
3d2430 |
Subject: [PATCH 1/1] Restore some service file differences
|
|
|
3d2430 |
|
|
|
3d2430 |
---
|
|
|
3d2430 |
etc/systemd/iscsi.service | 13 +++++++++----
|
|
|
3d2430 |
etc/systemd/iscsid.service | 1 +
|
|
|
3d2430 |
etc/systemd/iscsiuio.service | 1 -
|
|
|
3d2430 |
3 files changed, 10 insertions(+), 5 deletions(-)
|
|
|
3d2430 |
|
|
|
3d2430 |
diff --git a/etc/systemd/iscsi.service b/etc/systemd/iscsi.service
|
|
|
3d2430 |
index 0edcf51..f09b3a0 100644
|
|
|
3d2430 |
--- a/etc/systemd/iscsi.service
|
|
|
3d2430 |
+++ b/etc/systemd/iscsi.service
|
|
|
3d2430 |
@@ -1,15 +1,20 @@
|
|
|
3d2430 |
[Unit]
|
|
|
3d2430 |
Description=Login and scanning of iSCSI devices
|
|
|
3d2430 |
Documentation=man:iscsiadm(8) man:iscsid(8)
|
|
|
3d2430 |
-Before=remote-fs.target
|
|
|
3d2430 |
-After=network.target network-online.target iscsid.service
|
|
|
3d2430 |
+DefaultDependencies=no
|
|
|
3d2430 |
+Conflicts=shutdown.target
|
|
|
3d2430 |
+Before=remote-fs-pre.target
|
|
|
3d2430 |
+After=network.target network-online.target iscsid.service iscsiuio.service systemd-remount-fs.service
|
|
|
3d2430 |
+Wants=remote-fs-pre.target iscsi-shutdown.service
|
|
|
3d2430 |
ConditionPathExists=/etc/iscsi/initiatorname.iscsi
|
|
|
3d2430 |
+ConditionDirectoryNotEmpty=|/var/lib/iscsi/nodes
|
|
|
3d2430 |
+ConditionDirectoryNotEmpty=|/sys/class/iscsi_session
|
|
|
3d2430 |
|
|
|
3d2430 |
[Service]
|
|
|
3d2430 |
Type=oneshot
|
|
|
3d2430 |
+ExecStart=-/usr/libexec/iscsi-mark-root-nodes
|
|
|
3d2430 |
ExecStart=-/sbin/iscsiadm -m node --loginall=automatic
|
|
|
3d2430 |
-ExecStop=/sbin/iscsiadm -m node --logoutall=automatic
|
|
|
3d2430 |
-ExecStop=/sbin/iscsiadm -m node --logoutall=manual
|
|
|
3d2430 |
+ExecReload=-/sbin/iscsiadm -m node --loginall=automatic
|
|
|
3d2430 |
SuccessExitStatus=21
|
|
|
3d2430 |
RemainAfterExit=true
|
|
|
3d2430 |
|
|
|
3d2430 |
diff --git a/etc/systemd/iscsid.service b/etc/systemd/iscsid.service
|
|
|
3d2430 |
index f5e8979..4fef168 100644
|
|
|
3d2430 |
--- a/etc/systemd/iscsid.service
|
|
|
3d2430 |
+++ b/etc/systemd/iscsid.service
|
|
|
3d2430 |
@@ -10,6 +10,7 @@ Type=notify
|
|
|
3d2430 |
NotifyAccess=main
|
|
|
3d2430 |
ExecStart=/sbin/iscsid -f
|
|
|
3d2430 |
KillMode=mixed
|
|
|
3d2430 |
+Restart=on-failure
|
|
|
3d2430 |
|
|
|
3d2430 |
[Install]
|
|
|
3d2430 |
WantedBy=multi-user.target
|
|
|
3d2430 |
diff --git a/etc/systemd/iscsiuio.service b/etc/systemd/iscsiuio.service
|
|
|
3d2430 |
index e4d9fd0..48501b6 100644
|
|
|
3d2430 |
--- a/etc/systemd/iscsiuio.service
|
|
|
3d2430 |
+++ b/etc/systemd/iscsiuio.service
|
|
|
3d2430 |
@@ -2,7 +2,6 @@
|
|
|
3d2430 |
Description=iSCSI UserSpace I/O driver
|
|
|
3d2430 |
Documentation=man:iscsiuio(8)
|
|
|
3d2430 |
DefaultDependencies=no
|
|
|
3d2430 |
-Conflicts=shutdown.target
|
|
|
3d2430 |
Requires=iscsid.service
|
|
|
3d2430 |
BindTo=iscsid.service
|
|
|
3d2430 |
After=network.target
|
|
|
3d2430 |
--
|
|
|
3d2430 |
2.21.0
|
|
|
3d2430 |
|