#!/bin/sh
# $Id: stopmts.sh,v 1.1 2005/08/01 21:44:48 ca Exp $
# Copyright (c) 2005 Sendmail, Inc. and its suppliers.
#	All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#

# variables must be set by caller!

if test -s ${PIDS}
then
  # stop MTA components
  for i in `cat ${PIDS}`
  do
    kill ${i}
  done
fi
# ----------------
# thanks kids for not following the POSIX standard...
if test X"`uname`" = "XLinux"
then
  killall qmgr smar
  #if ${PMILTER}
  #then
  #  killall ${PMILTPRG}
  #fi
fi


syntax highlighted by Code2HTML, v. 0.9.1