| Summary: | Change to etc/rc | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Annihilator <annihilator.c> |
| Component: | conf | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.5-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->closed Duplicate of PR conf/34993. This has already been changed in revisions 1.295 and 1.212.2.40. |
The requirement for existence of etc/mail/sendmail.cf before launching the MTA in etc/rc is redundant. It is also counterproductive when sendmail isn't installed as it prevents an alternative MTA from being started. Fix: Patch included. ------=_NextPart_000_001B_01C1BC72.DFFABE10 Content-Type: application/octet-stream; name="rc.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="rc.patch" ------=_NextPart_000_001B_01C1BC72.DFFABE10----s876exkylAiElfHHwo5iyoPy7XPFVXq9mtvrVU0MaDO8uEVV Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- etc/rc.orig Wed Dec 19 18:52:17 2001=0A= +++ etc/rc Sat Feb 23 12:40:54 2002=0A= @@ -525,22 +525,20 @@=0A= ;;=0A= esac=0A= =0A= -if [ -r /etc/mail/sendmail.cf ]; then=0A= - case ${sendmail_enable} in=0A= +case ${sendmail_enable} in=0A= +[Yy][Ee][Ss])=0A= + echo -n ' sendmail'=0A= + /usr/sbin/sendmail ${sendmail_flags}=0A= + ;;=0A= +*)=0A= + case ${sendmail_outbound_enable} in=0A= [Yy][Ee][Ss])=0A= echo -n ' sendmail'=0A= - /usr/sbin/sendmail ${sendmail_flags}=0A= - ;;=0A= - *)=0A= - case ${sendmail_outbound_enable} in=0A= - [Yy][Ee][Ss])=0A= - echo -n ' sendmail'=0A= - /usr/sbin/sendmail ${sendmail_outbound_flags}=0A= - ;;=0A= - esac=0A= + /usr/sbin/sendmail ${sendmail_outbound_flags}=0A= ;;=0A= esac=0A= -fi=0A= + ;;=0A= +esac=0A= =0A= echo '.'=0A= =0A=