diff options
author | cjc <cjc@FreeBSD.org> | 2002-02-17 02:01:15 +0000 |
---|---|---|
committer | cjc <cjc@FreeBSD.org> | 2002-02-17 02:01:15 +0000 |
commit | 3985693d095687c838e01df0861a4081f487ee0e (patch) | |
tree | be129d7d478111fb579062ca56b38a66cb1bd0db /etc/rc | |
parent | 2001cc959c77363a4ee7757245d804017eed5574 (diff) | |
download | FreeBSD-src-3985693d095687c838e01df0861a4081f487ee0e.zip FreeBSD-src-3985693d095687c838e01df0861a4081f487ee0e.tar.gz |
Remove check for sendmail.conf before even trying to start sendmail.
Checking for the existence of sendmail.cf is rather silly when someone
is using the mailwrapper(8) to run a mail daemon that is not actually
sendmail(8). It is also probably better to let sendmail(8) actually
try to start and error out if the administrator has
'sendmail_enable="YES"' but no sendmail.conf. At present, it would
fail silently.
Reviewed by: gshapiro
MFC after: 2 days
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 22 |
1 files changed, 10 insertions, 12 deletions
@@ -687,22 +687,20 @@ case ${usbd_enable} in ;; esac -if [ -r /etc/mail/sendmail.cf ]; then - case ${sendmail_enable} in +case ${sendmail_enable} in +[Yy][Ee][Ss]) + echo -n ' sendmail' + /usr/sbin/sendmail ${sendmail_flags} + ;; +*) + case ${sendmail_outbound_enable} in [Yy][Ee][Ss]) echo -n ' sendmail' - /usr/sbin/sendmail ${sendmail_flags} - ;; - *) - case ${sendmail_outbound_enable} in - [Yy][Ee][Ss]) - echo -n ' sendmail' - /usr/sbin/sendmail ${sendmail_outbound_flags} - ;; - esac + /usr/sbin/sendmail ${sendmail_outbound_flags} ;; esac -fi + ;; +esac echo '.' |