Date: Mon, 25 Mar 2002 15:01:59 -0800 From: Gregory Neil Shapiro <gshapiro@FreeBSD.ORG> To: thomas@cuivre.fr.eu.org Cc: Craig Boston <craig@meoqu.gank.org>, stable@FreeBSD.ORG Subject: Re: HEADS UP: Expect buildworld instability (sendmail 8.12.2 MFC) Message-ID: <15519.44135.77218.536123@horsey.gshapiro.net> In-Reply-To: <20020325235205.A78568@melusine.cuivre.fr.eu.org> References: <15519.37768.192688.770945@horsey.gshapiro.net> <3C9F9C81.10203@meoqu.gank.org> <15519.41048.709126.956805@horsey.gshapiro.net> <20020325231720.B75467@melusine.cuivre.fr.eu.org> <15519.41563.608637.748981@horsey.gshapiro.net> <20020325232633.D75467@melusine.cuivre.fr.eu.org> <15519.42443.783285.129952@horsey.gshapiro.net> <20020325235205.A78568@melusine.cuivre.fr.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
thomas> What is unfortunate is not the name of the variable per se, but the thomas> fact that with the introduction of 8.12, the name has become out of thomas> synch with the functionality. Here is a proposed solution: Index: etc/rc =================================================================== RCS file: /home/ncvs/src/etc/rc,v retrieving revision 1.305 diff -u -r1.305 rc --- etc/rc 25 Mar 2002 20:53:48 -0000 1.305 +++ etc/rc 25 Mar 2002 22:58:42 -0000 @@ -703,6 +703,8 @@ esac case ${sendmail_enable} in +[Nn][Oo][Nn][Ee]) + ;; [Yy][Ee][Ss]) echo -n ' sendmail' /usr/sbin/sendmail ${sendmail_flags} & @@ -723,14 +725,20 @@ ;; esac -if [ -r /etc/mail/submit.cf ]; then - case ${sendmail_msp_queue_enable} in - [Yy][Ee][Ss]) - echo -n ' sendmail-clientmqueue' - /usr/sbin/sendmail ${sendmail_msp_queue_flags} - ;; - esac -fi +case ${sendmail_enable} in +[Nn][Oo][Nn][Ee]) + ;; +*) + if [ -r /etc/mail/submit.cf ]; then + case ${sendmail_msp_queue_enable} in + [Yy][Ee][Ss]) + echo -n ' sendmail-clientmqueue' + /usr/sbin/sendmail ${sendmail_msp_queue_flags} + ;; + esac + fi + ;; +esac echo '.' Index: etc/defaults/rc.conf =================================================================== RCS file: /home/ncvs/src/etc/defaults/rc.conf,v retrieving revision 1.140 diff -u -r1.140 rc.conf --- etc/defaults/rc.conf 12 Mar 2002 21:47:31 -0000 1.140 +++ etc/defaults/rc.conf 25 Mar 2002 22:59:10 -0000 @@ -335,7 +335,8 @@ lpd_flags="" # Flags to lpd (if enabled). usbd_enable="NO" # Run the usbd daemon. usbd_flags="" # Flags to usbd (if enabled). -sendmail_enable="NO" # Run the sendmail inbound daemon (YES/NO). +sendmail_enable="NO" # Run the sendmail inbound daemon (YES/NO/NONE). + # If NONE, don't start any sendmail processes. sendmail_flags="-L sm-mta -bd -q30m" # Flags to sendmail (as a server) sendmail_outbound_enable="YES" # Dequeue stuck mail (YES/NO). sendmail_outbound_flags="-L sm-queue -q30m" # Flags to sendmail (outbound only) Index: share/man/man5/rc.conf.5 =================================================================== RCS file: /home/ncvs/src/share/man/man5/rc.conf.5,v retrieving revision 1.157 diff -u -r1.157 rc.conf.5 --- share/man/man5/rc.conf.5 17 Mar 2002 14:52:54 -0000 1.157 +++ share/man/man5/rc.conf.5 25 Mar 2002 23:00:00 -0000 @@ -1717,12 +1717,17 @@ .Xr lpd 8 daemon. .It Va sendmail_enable -.Pq Vt bool +.Pq Vt str If set to .Dq Li YES , run the .Xr sendmail 8 daemon at system boot time. +If set to +.Dq Li NONE , +do not run any +.Xr sendmail 8 +processes at system boot time. .It Va sendmail_flags .Pq Vt str If To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15519.44135.77218.536123>