From owner-freebsd-stable Thu Mar 28 18:28: 4 2002 Delivered-To: freebsd-stable@freebsd.org Received: from pc3-cove5-0-cust178.bir.cable.ntl.com (pc3-cove5-0-cust178.bir.cable.ntl.com [213.105.113.178]) by hub.freebsd.org (Postfix) with ESMTP id 3524337B41B; Thu, 28 Mar 2002 18:27:54 -0800 (PST) Received: from ntlworld.com (alpha.private.lan [192.168.0.2]) by pc3-cove5-0-cust178.bir.cable.ntl.com (8.11.6/8.11.6) with ESMTP id g2T2RqP96356; Fri, 29 Mar 2002 02:27:52 GMT (envelope-from ianjhart@ntlworld.com) Message-ID: <3CA3D127.E6C68295@ntlworld.com> Date: Fri, 29 Mar 2002 02:27:51 +0000 From: ian j hart X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: Gregory Neil Shapiro Cc: freebsd-current@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG Subject: Re: Another possible solution for non-sendmail users References: <15523.14636.146301.834847@horsey.gshapiro.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Gregory Neil Shapiro wrote: > > Given that non-sendmail users will be inconvenienced when upgrading due to > the 8.12 changes (need to change sendmail_enable from "NO" to "NONE"), I > thought it might be better to give them something back for their trouble. > > As an alternative to sendmail_enable=NONE, why not solve the boot time > problem for non-sendmail users completely. The patch moves all of the > sendmail startup code from /etc/rc to /etc/rc.sendmail. The source for > that script will be kept in src/etc/sendmail/rc.sendmail so make.conf's > NO_SENDMAIL will prevent it from being installed. A new rc.conf variable, > mta_start_script specifies the script to run to start the user's > preferred MTA. For backward compatibility, it will default to > /etc/rc.sendmail. The specified script is called out of /etc/rc after > checking to make sure it exists. > > I've also taken the opportunity to use /etc/rc.sendmail in > /etc/mail/Makefile to reduce code duplication. A new rc.sendmail.8 man > page has also been added which now houses the sendmail_* variable > descriptions formerly in rc.conf.5. > > In a somewhat unrelated note, I also plan on arranging to move the > sendmail-specific stuff out of src/etc/mail/ and into src/etc/sendmail so > the installation of things like sample sendmail maps, etc. don't clutter a > NO_SENDMAIL installation. I'll need to arrange this event with the CVS > repomeisters. Hopefully, this change (along with the patch) will make > things more palatable for non-sendmail users. > > The patch is against -CURRENT but should give -STABLE users a good idea of my > intentions. It is available at: > > http://people.freebsd.org/~gshapiro/mta-start > > Opinions? > Brilliant! I suppose you just threw this together :) One small quibble. If I want to set mta_start_script="" and run rc.sendmail(.sh) from /usr/local/etc/rc.d shouldn't "stop" kill both queues? You'd need to add a stop-mtaq obviously. A global restart might be nice too. [If this is mindless drivel, just ignore:- need sleep.] -- ian j hart To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message