Grier Ellis <[EMAIL PROTECTED]> wrote:

>First, let me say thanks to Dave for _Life with qmail_!

You're welcome, as is everyone else who's taken the time to thank me
for it. (I don't always have the time to "welcome" everyone who thanks 
me.)

>But (oh, here comes the good part :-):,

There's always a "but"... :-)

>though your
>startup script works, I have a hard time imagining that
>DJB who said "svscan is designed to run forever" intended
>for it to have to be killed to stop qmail.  Of course,
>I have less experience than others on this list, so maybe 
>I'm just missing something.

The LWQ "qmail" script is designed to be plugged into the run-level
startup/shutdown script directories (.../rcN.d), and well-behaved
scripts, when run with the "stop" parameter, are supposed to kill off
*all* of their processes.

>It occurs to me that another problem is that one might want 
>cycle qmail-smtpd and qmail-pop3d (in my case, at least)
>independently, while leaving qmail proper up.  
>
>Of course, I can write my own scripts, but I thought that,
>since he writes such great code, DJB might have had some
>particular scheme in mind for using daemontools and qmail
>together.

Just add additional tags to the "case" statement, e.g.:

  stop-smtpd)
    echo -n "Stopping qmail-smtpd: "
    svc -d /var/supervise/qmail/smtpd
    echo "done."
    ;;
  start-smtpd)
    echo -n "Starting qmail-smtpd: "
    svc -u /var/supervise/qmail/smtpd
    echo "done."
    ;;

-Dave

Reply via email to