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