fix pid files did not get removed and the kill term showing up

This commit is contained in:
lissav 2013-08-19 13:29:51 -04:00
parent bae1fbbdf4
commit 6cac1a8001

View File

@ -24,8 +24,7 @@ while ! grep 'resourcerequest: ok' /tmp/goahead.$parpid > /dev/null; do
done
sleeper=$(cat /tmp/sleeperpid.$parpid)
sleeper=$(ps -ef|awk "\$3==$sleeper"|awk '{print $2}')
kill -TERM $sleeper
rm /tmp/goahead.$parpid
rm /tmp/sleeperpid.$parpid
rm /tmp/killme.$parpid
kill -TERM $sleeper