home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 4.ddi / etc / rc0.d / K74smtpd
Encoding:
Text File  |  1990-12-08  |  508 b   |  26 lines

  1. #ident    "@(#)/etc/rc0.d/K74smtpd.sl 1.1 4.0 12/08/90 15676 AT&T-USL"
  2. #
  3. #  /etc/rc0.d/K74smtpd - Stop the SMTP daemon (smtpd).
  4. #
  5.  
  6. #
  7. # Stop SMTP listener Daemon.
  8. #
  9. PATH=/usr/bin:/bin
  10.  
  11. pids=`ps -e | egrep smtpd | cut -c1-6`
  12. [ -n "$pids" ] && kill -9 ${pids}
  13.  
  14. #
  15. # Make sure it has stopped running.
  16. #
  17. sleep 2
  18. pids=`ps -e | egrep smtpd | cut -c1-6`
  19. if [ -n "$pids" ]
  20. then
  21.     kill -9 $pids
  22.     sleep 2
  23.     pids=`ps -e | egrep "smtpd" | cut -c1-6`
  24.     [ -n "$pids" ] && echo "\n\t*****  WARNING - couldn't kill smtpd  *****"
  25. fi
  26.