summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/restart-anaconda6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/restart-anaconda b/scripts/restart-anaconda
index 4e3cd7e89..e0fb544d7 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