From d1230bcf16b50d503e88f3ba843da1d2c2b34c0d Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 13 Jun 2013 16:15:11 +0000 Subject: [PATCH] moved xcatflowrequest to /install/postscripts git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16626 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../xcat/install/scripts/xcatflowrequest.sh | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 xCAT-server/share/xcat/install/scripts/xcatflowrequest.sh diff --git a/xCAT-server/share/xcat/install/scripts/xcatflowrequest.sh b/xCAT-server/share/xcat/install/scripts/xcatflowrequest.sh deleted file mode 100644 index 91d86cc94..000000000 --- a/xCAT-server/share/xcat/install/scripts/xcatflowrequest.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html -exec 13<>/dev/udp/$1/$2 -echo "resourcerequest: xcatd" >&13 -parpid=$$ -touch /tmp/goahead.$parpid -touch /tmp/killme.$parpid -exec 2> /dev/null -while ! grep 'resourcerequest: ok' /tmp/goahead.$parpid > /dev/null; do - ( - mypid=$BASHPID - (sleep $(((RANDOM%60)+120)).$((RANDOM%50)); if [ -f /tmp/killme.$parpid ]; then kill -TERM $mypid; fi) & - exec awk '{print $0 > "/tmp/goahead.'$parpid'";exit}' <&13 - ) -done -rm /tmp/killme.$parpid -