From be9894483ae64cc29313db286fa511cc57bcf1d0 Mon Sep 17 00:00:00 2001 From: Ales Kozumplik Date: Thu, 2 Sep 2010 18:18:32 +0200 Subject: restart-anaconda: kill iscsid too --- scripts/restart-anaconda | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit