diff --git a/src/etc/rc b/src/etc/rc index 9dc3f441..7d1e1d47 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.153 2000/09/06 17:19:27 millert Exp $ +# $OpenBSD: rc,v 1.154 2000/10/07 00:03:52 millert Exp $ # System startup script run by init on autoboot # or after single-user. @@ -430,10 +430,11 @@ if [ X${lpd} = X"YES" ]; then fi # $sendmail_flags is imported from /etc/rc.conf; -# If $sendmail_flags == NO or /etc/mail/sendmail.cf doesn't exist, then +# If $sendmail_flags == NO or /etc/mailer.conf doesn't exist, then # sendmail isn't run. We call sendmail with a full path so that -# SIGHUP works. -if [ "X${sendmail_flags}" != X"NO" -a -s /etc/mail/sendmail.cf ]; then +# SIGHUP works. Note that /usr/sbin/sendmail may actually call a +# mailer other than sendmail, depending on /etc/mailer.conf. +if [ "X${sendmail_flags}" != X"NO" -a -s /etc/mailer.conf ]; then echo -n ' sendmail'; ( /usr/sbin/sendmail ${sendmail_flags} >/dev/null 2>&1 & ) fi