commit | 3ce79aa55bdadd4be53cee8ad9c0ef5da0ad3749 | [log] [tgz] |
---|---|---|
author | Jesse Andrews <anotherjesse@gmail.com> | Sat Nov 05 22:52:20 2011 -0700 |
committer | Jesse Andrews <anotherjesse@gmail.com> | Sat Nov 05 22:52:20 2011 -0700 |
tree | bcd0c90f10d9821e81a4e6a9cfd0d433a95e90d6 | |
parent | 947a7651301dafb325bdce8b0cdf11361b7e496d [diff] [blame] |
improve kill
diff --git a/tools/build_uec.sh b/tools/build_uec.sh index 61709ab..b7567f6 100755 --- a/tools/build_uec.sh +++ b/tools/build_uec.sh
@@ -166,7 +166,10 @@ EOF # (re)start a metadata service -lsof -iTCP@192.168.$GUEST_NETWORK.1:4567 -n | awk '{print $2}' | xargs -n1 kill -9 +( + pid=`lsof -iTCP@192.168.$GUEST_NETWORK.1:4567 -n | awk '{print $2}' | tail -1` + [ "$pid" == "PID" ] || kill -9 $pid +) cd $vm_dir/uec python meta.py 192.168.$GUEST_NETWORK.1:4567 &