#!/bin/sh
cd `dirname $0`
LIBDIR=../lib

#You must be root
id | grep uid=0\( 1>/dev/null 2>&1
if [ $? -ne 0 ]
	then echo "You must be root to stop the CIM Extension"
    exit 1
fi

if [ -s $LIBDIR/cxws.pid ]
    then kill -9 `cat $LIBDIR/cxws.pid`
    rm $LIBDIR/cxws.pid
    echo "CIM Extension stopped"

else
    echo "CIM Extension not stopped"
    echo "Use status to verify that it is running"
fi



