#!/bin/sh
#**********************************************************************
#  Copyright(C) 1996, 1997 Network Flight Recorder, Inc.
#  All rights reserved.
#
#  Use and distribution of this software and its source code 
#  are governed by the terms and conditions of the 
#  Network Flight Recorder Software License ("LICENSE.TXT")  
#**********************************************************************
#
PATH=/usr/ucb:/usr/bin:/bin

pid=`ps -ax | grep spacemand | grep -v grep | /usr/bin/sed -e 's/^  *//' -e 's/ .*//'`
if test "$pid"
then
        echo "Terminating spaceman ($pid)"
        kill -TERM $pid
else
        echo "spaceman not running"
fi
