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

[PATCH 5/7] restart-anaconda: kill iscsid too



---
 scripts/restart-anaconda |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/scripts/restart-anaconda b/scripts/restart-anaconda
index 4e3cd7e..e0fb544 100755
--- a/scripts/restart-anaconda
+++ b/scripts/restart-anaconda
@@ -43,8 +43,12 @@ anaconda_descendants() {
 touch $RESTART_FILE
 
 # kill all anaconda descendants and anaconda itself
-RESTART_VICTIMS=`anaconda_descendants` 
+RESTART_VICTIMS=`anaconda_descendants`
 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`
+fi
 echo "killing processes: " $RESTART_VICTIMS
 for child in $RESTART_VICTIMS; do
     kill -s KILL $child &>/dev/null
-- 
1.7.1.1


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