]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Quoting Peter Wemm, "At great personal risk, touch the sendmail startup
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>
Fri, 5 Apr 2002 02:30:49 +0000 (02:30 +0000)
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>
Fri, 5 Apr 2002 02:30:49 +0000 (02:30 +0000)
commit619b80c4e66179b83f0b53ba06261919939a8aa1
tree2f224401e91686cb1b50b4d91085277cadcdf2b4
parent911fc92344b6bf19e1d34124ab70a040009051fa
Quoting Peter Wemm, "At great personal risk, touch the sendmail startup
again."

As an alternative to sendmail_enable=NONE, solve the boot time problem
for non-sendmail users completely by moving 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.  A new rc.sendmail.8 man page has also
been added which now houses the sendmail_* variable descriptions
formerly in rc.conf.5.

Use /etc/rc.sendmail in /etc/mail/Makefile to reduce code duplication.

Reviewed by: -current, -stable, obrien, peter, ru
MFC after: 1 week
etc/defaults/rc.conf
etc/mail/Makefile
etc/rc
etc/rc.sendmail [new file with mode: 0644]
etc/sendmail/Makefile
etc/sendmail/rc.sendmail [new file with mode: 0644]
share/man/man5/rc.conf.5
share/man/man8/Makefile
share/man/man8/rc.sendmail.8 [new file with mode: 0644]