svn commit: r334700 - in head/etc: rc.d sendmail
Brad Davis
brd at FreeBSD.org
Wed Jun 6 01:51:07 UTC 2018
Author: brd
Date: Wed Jun 6 01:51:05 2018
New Revision: 334700
URL: https://svnweb.freebsd.org/changeset/base/334700
Log:
Only create /var/log/sendmail.st if start sendmail.
For those of us that never use or start sendmail, it is unneeded.
Approved by: bapt (mentor)
Modified:
head/etc/rc.d/sendmail
head/etc/sendmail/Makefile
Modified: head/etc/rc.d/sendmail
==============================================================================
--- head/etc/rc.d/sendmail Wed Jun 6 01:30:48 2018 (r334699)
+++ head/etc/rc.d/sendmail Wed Jun 6 01:51:05 2018 (r334700)
@@ -197,6 +197,10 @@ sendmail_precmd()
sendmail_cert_create
fi
fi
+
+ if [ ! -f /var/log/sendmail.st ]; then
+ /usr/bin/install -m 640 -o root -g wheel /dev/null /var/log/sendmail.st
+ fi
}
run_rc_command "$1"
Modified: head/etc/sendmail/Makefile
==============================================================================
--- head/etc/sendmail/Makefile Wed Jun 6 01:30:48 2018 (r334699)
+++ head/etc/sendmail/Makefile Wed Jun 6 01:51:05 2018 (r334700)
@@ -70,8 +70,6 @@ distribution:
${.CURDIR}/freebsd.submit.mc freebsd.submit.cf ${DESTDIR}/etc/mail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
${SMDIR}/helpfile ${DESTDIR}/etc/mail
- ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 \
- /dev/null ${DESTDIR}/var/log/sendmail.st
.if defined(INSTALL_CF)
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
${INSTALL_CF} ${DEST_CF}
More information about the svn-src-all
mailing list