diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-10-07 00:03:53 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-10-07 00:03:53 +0000 |
commit | 9e8a10a7b617172ca5fef8f000e3ca05c83e3018 (patch) | |
tree | 3e68d30b6d68de39e6790f9db034aab1838b6c73 | |
parent | 57c29bfb8a4ea4813f24e2322bc756019c65dbf1 (diff) |
If /etc/mailer.conf specifies a mailer other than sendmail, there
may be no /etc/mail/sendmail.cf so don't include that in the check
for whether or not to run /usr/sbin/sendmail. Instead, check for
the existence of /etc/mailer.conf. Pointed out by Theo.
-rw-r--r-- | etc/rc | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |