[Mimedefang] OT: Sendmail Startup Script

Jeff Grossman jeff at stikman.com
Fri Aug 23 17:07:00 EDT 2002


on 8/23/02 12:53 PM, Rich West at Rich.West at wesmo.com wrote:

> IMHO, for simplicity, simply call killproc twice.  You have two
> processes, and killproc kills just one, so call it once for each
> process.  And the following code will do that.  (note that the start
> portion of the init script starts the queue-runner AFTER sendmail is
> started, so the ordering of the killproc in the snippet below kills them
> in the same order)
> 
> 
> stop)
>       # Stop daemons.
>       echo -n "Shutting down sendmail: "
>       killproc sendmail
>       RETVAL=$?
>       echo
>       [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sendmail
>       killproc sendmail
>       RETVAL=$?
>       echo
>       [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sendmail.smmsp
>       ;;
> 

I tried that, but it did not work.  I am going to try David's example and
see how it goes.

Jeff
-- 
Jeff Grossman (jeff at grossman.name)




More information about the MIMEDefang mailing list