#!/bin/sh
#
# @(#)postpatch	1.2	99/03/15 SMI
# Copyright 1999 Sun Microsystems, Inc. All Rights Reserved.
#
# this script kills the currently running iCald server
#
# Revision History:
# ---------------------------------------------------
# 01/20/1999    Chidam Jambu  Created this shell

# aliases of common utilities
GREP=/bin/grep
PS=/bin/ps
KILL=/bin/kill
AWK=/bin/awk

procname=iCald

pid=`$PS -ef | $GREP "$procname" | $GREP -v $GREP | $AWK '{ print $2 }'`
if [ "$pid" != "" ]
then
      $KILL -TERM $pid
fi

exit 0

