[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[master 2/2] restart-anaconda: log out of all iscsi nodes



---
 scripts/restart-anaconda |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/scripts/restart-anaconda b/scripts/restart-anaconda
index e0fb544..5f8778b 100755
--- a/scripts/restart-anaconda
+++ b/scripts/restart-anaconda
@@ -48,6 +48,8 @@ RESTART_VICTIMS+=' '$ANACONDA_PID
 if [[ -f /var/run/iscsid.pid ]]; then
     # iscsid must die else it will cause us troubles on the next run
     RESTART_VICTIMS+=' '`cat /var/run/iscsid.pid`
+    # log out of all nodes
+    iscsiadm -m node --logoutall=all
 fi
 echo "killing processes: " $RESTART_VICTIMS
 for child in $RESTART_VICTIMS; do
-- 
1.7.1.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]