kill works

This commit is contained in:
Jesse Andrews 2011-11-05 22:54:54 -07:00
parent 3ce79aa55b
commit cc03cc8d58

View file

@ -168,7 +168,7 @@ EOF
# (re)start a metadata service
(
pid=`lsof -iTCP@192.168.$GUEST_NETWORK.1:4567 -n | awk '{print $2}' | tail -1`
[ "$pid" == "PID" ] || kill -9 $pid
[ ! -e $pid ] || kill -9 $pid
)
cd $vm_dir/uec
python meta.py 192.168.$GUEST_NETWORK.1:4567 &