mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
Handle the sendmail_outbound_enable knob in the start target.
PR: 32033 MFC after: 3 days
This commit is contained in:
parent
726cea436a
commit
74cc11c2df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86638
@ -157,10 +157,18 @@ install: ${INSTALL_CF}
|
||||
|
||||
start:
|
||||
(. /etc/defaults/rc.conf; source_rc_confs; \
|
||||
if [ "$${sendmail_enable}" = "YES" -a -r /etc/mail/sendmail.cf ];\
|
||||
then \
|
||||
${SENDMAIL} $${sendmail_flags}; \
|
||||
fi \
|
||||
case "$${sendmail_enable}" in \
|
||||
[Yy][Ee][Ss]) \
|
||||
/usr/sbin/sendmail $${sendmail_flags} \
|
||||
;; \
|
||||
*) \
|
||||
case "$${sendmail_outbound_enable}" in \
|
||||
[Yy][Ee][Ss]) \
|
||||
/usr/sbin/sendmail $${sendmail_outbound_flags} \
|
||||
;; \
|
||||
esac \
|
||||
;; \
|
||||
esac \
|
||||
)
|
||||
|
||||
stop:
|
||||
|
Loading…
Reference in New Issue
Block a user