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