929689a
From 3e2bcef50b2b0a68f4ae9fb32a1cb67189b7a203 Mon Sep 17 00:00:00 2001
fbd8563
From: Chris Leech <cleech@redhat.com>
fbd8563
Date: Fri, 14 Mar 2014 09:22:21 -0700
fbd8563
Subject: [PATCH] update iscsi.service for boot session recovery
fbd8563
fbd8563
---
fbd8563
 etc/systemd/iscsi.service | 5 +++--
fbd8563
 1 file changed, 3 insertions(+), 2 deletions(-)
fbd8563
fbd8563
diff --git a/etc/systemd/iscsi.service b/etc/systemd/iscsi.service
fbd8563
index d5712bd..3de76c5 100644
fbd8563
--- a/etc/systemd/iscsi.service
fbd8563
+++ b/etc/systemd/iscsi.service
fbd8563
@@ -5,14 +5,15 @@ DefaultDependencies=no
fbd8563
 Conflicts=shutdown.target
fbd8563
 After=systemd-remount-fs.service network.target iscsid.service iscsiuio.service
fbd8563
 Before=remote-fs-pre.target
fbd8563
-ConditionDirectoryNotEmpty=/var/lib/iscsi/nodes
fbd8563
+ConditionDirectoryNotEmpty=|/var/lib/iscsi/nodes
fbd8563
+ConditionDirectoryNotEmpty=|/sys/class/iscsi_session
fbd8563
 
fbd8563
 [Service]
fbd8563
 Type=oneshot
fbd8563
 RemainAfterExit=true
fbd8563
 ExecStart=/usr/libexec/iscsi-mark-root-nodes
fbd8563
+SuccessExitStatus=21
fbd8563
 ExecStart=/sbin/iscsiadm -m node --loginall=automatic
fbd8563
-ExecStop=/bin/sync
fbd8563
 ExecStop=/sbin/iscsiadm -m node --logoutall=automatic
fbd8563
 ExecReload=/sbin/iscsiadm -m node --loginall=automatic
fbd8563
 
fbd8563
-- 
929689a
2.1.0
fbd8563