Blame SOURCES/0166-start-socket-listeners-on-iscsiadm-command.patch

6c64be
From 89e9c2ff66d069b812fabcd4fefe453bbcea73e4 Mon Sep 17 00:00:00 2001
6c64be
From: Chris Leech <cleech@redhat.com>
6c64be
Date: Mon, 25 Nov 2013 22:28:12 -0800
6c64be
Subject: [PATCH] start socket listeners on iscsiadm command
6c64be
6c64be
fix for trying to run iscsiadm commands right after installing the rpm
6c64be
without manually starting the systemd units
6c64be
---
6c64be
 etc/iscsid.conf | 3 ++-
6c64be
 1 file changed, 2 insertions(+), 1 deletion(-)
6c64be
6c64be
diff --git a/etc/iscsid.conf b/etc/iscsid.conf
6c64be
index 1fd3000..412f130 100644
6c64be
--- a/etc/iscsid.conf
6c64be
+++ b/etc/iscsid.conf
6c64be
@@ -17,7 +17,8 @@
6c64be
 # maintainers.
6c64be
 #
6c64be
 # Default for Fedora and RHEL. (uncomment to activate).
6c64be
-#iscsid.startup = /bin/systemctl start iscsid.service
6c64be
+# Use socket activation, but try to make sure the socket units are listening
6c64be
+iscsid.startup = /bin/systemctl start iscsid.socket iscsiuio.socket
6c64be
 # 
6c64be
 # Default for upstream open-iscsi scripts (uncomment to activate).
6c64be
 # iscsid.startup = /sbin/iscsid
6c64be
-- 
6c64be
1.8.3.1
6c64be