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

This commit is contained in:
lissav 2013-08-19 13:29:11 -04:00
parent 37118daaf9
commit 0bdae5e4c4

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