#!/bin/sh
# /* @(#) smtd_kill.sh 1.19 01 Feb 1995 16:15:25  @(#) */

os_rel=`uname -r | awk -F. '{print $1}'`
if [ $os_rel = "5" ]; then
	pid=`/usr/bin/ps -e | /usr/bin/grep smtd | /usr/bin/grep -v smtd_ki | /usr/bin/sed -e 's/^  *//' -e 's/ .*//'` 
	if [ "${pid}" != "" ]; then 
		/usr/bin/kill -9 ${pid} 2>/dev/null
	fi 
else
	kill -9 ` ps -ax|grep smtd|awk '$5 ~ /smtd$/'|awk ' {printf("%s ", $1)}' `
fi
