2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-14 18:30:23 +00:00
Files
xcat-core/xCAT-nbroot2/minixcatd.awk
jbjohnso f3d17e5588 Forgo sleep shortening for now
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10536 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-09-16 19:15:23 +00:00

19 lines
455 B
Awk
Executable File

#!/usr/bin/awk -f
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
BEGIN {
port = 3001
listener = "/inet/tcp/" port "/0/0"
quit = "no"
while (match(quit,"no")) {
while (match(quit,"no") && (listener |& getline) > 0) {
if (match($0,"restart")) {
print "restarting bootstrap process" |& listener
quit="yes"
system("echo \"" $0 "\" > /restart")
close(listener)
}
}
close(listener)
}
}