diff options
author | 2009-08-26 14:06:20 +0400 | |
---|---|---|
committer | 2009-08-26 14:06:20 +0400 | |
commit | 203ead77a9058bfdddec06694b53eee3a12a46bd (patch) | |
tree | d392bd98b4c89a7023e864e0dfeec879ba4d9684 /sys-block/tgt/files | |
parent | [sys-block/tgt] update tgtd init.d (diff) | |
download | sci-203ead77a9058bfdddec06694b53eee3a12a46bd.tar.gz sci-203ead77a9058bfdddec06694b53eee3a12a46bd.tar.bz2 sci-203ead77a9058bfdddec06694b53eee3a12a46bd.zip |
[sys-block/tgt] we need to wait for 1 second to setup tgtd
(Portage version: 2.2_rc38/git/Linux i686)
(Unsigned Manifest commit)
Diffstat (limited to 'sys-block/tgt/files')
-rw-r--r-- | sys-block/tgt/files/tgtd | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys-block/tgt/files/tgtd b/sys-block/tgt/files/tgtd index edacbe9cb..b528c6419 100644 --- a/sys-block/tgt/files/tgtd +++ b/sys-block/tgt/files/tgtd @@ -24,9 +24,11 @@ start() echo "Could not start tgtd (is tgtd already running?)" exit 1 fi + # We need to wait for 1 second before do anything with tgtd + sleep 1 # Put tgtd into "offline" state until all the targets are configured. # We don't want initiators to (re)connect and fail the connection - # if it's not ready. + # if it's not ready tgtadm --op update --mode sys --name State -v offline # Configure the targets. tgt-admin --update ALL -c $TGTD_CONFIG |