
Stopping K2 Server 123
if [ "$pid" != "" ] ; then
kill $pid
pidproc $1
if [ "$pid" != "" ] ; then
sleep 5 # give it sometime to die
pidproc $1
if [ "$pid" != "" ] ; then # if it still lives, use -9
kill -9 $pid
fi
fi
fi
}
# Make sure K2 server goes away
killproc k2server
exit 0