From 8de5a99bad437800da9433fb6bd60b9548cb2994 Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Sat, 4 Feb 2012 03:00:00 -0600 Subject: [PATCH] Fix iscsi NM use When NM calls us there can be a delay between when it thinks we are up and when nm-online returns success. This has nm-online wait for up to 60 secs so we do not fail early. --- iscsidevs.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iscsidevs.init b/iscsidevs.init index 2ca316b..57528e0 100755 --- a/iscsidevs.init +++ b/iscsidevs.init @@ -34,7 +34,7 @@ start() { # if the network isn't up yet exit cleanly, NetworkManager will call us # again when the network is up - [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 3 + [ ! -f /var/lock/subsys/network ] && ! nm-online -t 60 >/dev/null 2>&1 && exit 3 # if no nodes are setup to startup automatically exit cleanly grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes