vinayakb | 5d8a2f2 | 2013-01-29 19:45:44 +0000 | [diff] [blame^] | 1 | hostname |
| 2 | . conf/cluster.properties |
| 3 | |
| 4 | #Kill process |
| 5 | PID=`ps -ef|grep ${USER}|grep java|grep 'Dapp.name=hyracksnc'|awk '{print $2}'` |
| 6 | |
| 7 | if [ "$PID" == "" ]; then |
| 8 | USERID=`id | sed 's/^uid=//;s/(.*$//'` |
| 9 | PID=`ps -ef|grep ${USERID}|grep java|grep 'Dapp.name=hyracksnc'|awk '{print $2}'` |
| 10 | fi |
| 11 | |
| 12 | echo $PID |
| 13 | kill -9 $PID |
| 14 | |
| 15 | #Clean up I/O working dir |
| 16 | io_dirs=$(echo $IO_DIRS | tr "," "\n") |
| 17 | for io_dir in $io_dirs |
| 18 | do |
| 19 | rm -rf $io_dir/* |
| 20 | done |
| 21 | |
| 22 | #Clean up NC temp dir |
| 23 | rm -rf $NCTMP_DIR/* |