[1237] in Athena Bugs

home help back first fref pref prev next nref lref last post

sendmail in /etc/rc

daemon@ATHENA.MIT.EDU (paul@ATHENA.MIT.EDU)
Tue Oct 25 18:01:58 1988

From: <paul@ATHENA.MIT.EDU>
Date: Tue, 25 Oct 88 18:01:42 EDT
To: bugs@ATHENA.MIT.EDU

Look at this: why is sendmail -bz run regardless of the NEWMAILCF
option, and then run again if the option is set, but AFTER sendmail
itself starts up, when it's too late for this boot cycle?

It seems to me that the third section should simply replace the first.

					-Paul


if [ -f /usr/lib/sendmail ]; then
	/usr/lib/sendmail -bz
fi

.
.
.

if [ ${SENDMAIL}x = truex ]; then
	echo -n "sendmail..."					>/dev/console
	(cd /usr/spool/mqueue; rm -f [lxtn]f*)
	/usr/lib/sendmail -bd -q30m &
fi

.
.
.

if [ ${NEWMAILCF}x = truex ]; then
	echo -n "Updating sendmail.cf..."			>/dev/console
	cp /site/usr/lib/sendmail.cf /site/usr/lib/sendmail.cf.old
	cp /srvd/site/usr/lib/sendmail.cf /site/usr/lib/sendmail.cf
	rm /site/usr/lib/sendmail.fc 
	/usr/lib/sendmail -bz
	echo "done."						>/dev/console
fi

home help back first fref pref prev next nref lref last post