Date: Fri, 9 Mar 2001 21:28:07 +0200 (EET) From: Esa Karkkainen <ejk@pp.htv.fi> To: FreeBSD-gnats-submit@freebsd.org Subject: conf/25639: /etc/mail/Makefile does not source /etc/rc.conf when starting sendmail Message-ID: <200103091928.f29JS7411979@anthrax.mumblefrotz.dyndns.org>
next in thread | raw e-mail | index | archive | help
>Number: 25639 >Category: conf >Synopsis: /etc/mail/Makefile does not source /etc/rc.conf when starting sendmail >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 09 11:30:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Esa Karkkainen >Release: FreeBSD 4.2-STABLE i386 >Organization: Who me organized? >Environment: Where the new mechanism for stopping and starting sendmail exists. >Description: Sendmail starts with incorrect parameters, assuming you have added customized sendmail_flags variable to /etc/rc.conf or /etc/rc.conf.local, when started the following way # cd /etc/mail # make start >How-To-Repeat: # grep sendmail_flags /etc/rc.conf # sendmail_flags="-bd -q30m -oOA=127.0.0.1" # cat /var/run/sendmail.pid 190 /usr/sbin/sendmail -bd -q30m -oOA=127.0.0.1 # sudo make stop /bin/kill -TERM `head -1 /var/run/sendmail.pid` # make start (. /etc/defaults/rc.conf; if [ "${sendmail_enable}" = "YES" -a -r /etc/mail/sendmail.cf ]; then /usr/sbin/sendmail ${sendmail_flags}; fi ) # cat /var/run/sendmail.pid 11941 /usr/sbin/sendmail -bd -q30m >Fix: Apply the following patch to /etc/mail/Makefile --- Makefile.orig Fri Mar 2 20:12:34 2001 +++ Makefile Fri Mar 9 21:13:24 2001 @@ -141,7 +141,7 @@ ${INSTALL} -c -m ${SHAREMODE} ${SENDMAIL_MC_CF} /etc/mail/sendmail.cf start: - (. /etc/defaults/rc.conf; \ + (. /etc/defaults/rc.conf; source_rc_confs; \ if [ "$${sendmail_enable}" = "YES" -a -r /etc/mail/sendmail.cf ];\ then \ ${SENDMAIL} $${sendmail_flags}; \ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103091928.f29JS7411979>