summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorcjc <cjc@FreeBSD.org>2002-02-17 02:01:15 +0000
committercjc <cjc@FreeBSD.org>2002-02-17 02:01:15 +0000
commit3985693d095687c838e01df0861a4081f487ee0e (patch)
treebe129d7d478111fb579062ca56b38a66cb1bd0db /etc/rc
parent2001cc959c77363a4ee7757245d804017eed5574 (diff)
downloadFreeBSD-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/rc22
1 files changed, 10 insertions, 12 deletions
diff --git a/etc/rc b/etc/rc
index 7ed6443..e2fa9960 100644
--- a/etc/rc
+++ b/etc/rc
@@ -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 '.'
OpenPOWER on IntegriCloud