#!/bin/sh
#
KILL=/usr/bin/kill
AWK=/usr/bin/awk
GREP=/usr/bin/grep
PS=/usr/bin/ps

apid=`$PS -fe | $GREP rpc.metacld | $GREP -v grep | $AWK '{print $2}'`

if [ -n "$apid" ]
then
	$KILL $apid
fi

bpid=`$PS -fe | $GREP rpc.metamedd | $GREP -v grep | $AWK '{print $2}'`
 
if [ -n "$bpid" ]
then
	$KILL $bpid
fi

exit 0
