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

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

 



---
 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux