summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAles Kozumplik <akozumpl@redhat.com>2010-09-02 18:18:32 +0200
committerAles Kozumplik <akozumpl@redhat.com>2010-09-08 18:19:14 +0200
commitbe9894483ae64cc29313db286fa511cc57bcf1d0 (patch)
tree69f4e19d553de818d1e09f52a99153dce603b761 /scripts
parent6d25273e6571d0fdfdc1a9439db7ba45e48c5754 (diff)
downloadanaconda-be9894483ae64cc29313db286fa511cc57bcf1d0.tar.gz
anaconda-be9894483ae64cc29313db286fa511cc57bcf1d0.tar.xz
anaconda-be9894483ae64cc29313db286fa511cc57bcf1d0.zip
restart-anaconda: kill iscsid too
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