From owner-freebsd-bugs Fri Mar 9 11:30: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id F1C9437B718 for ; Fri, 9 Mar 2001 11:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f29JU1G57402; Fri, 9 Mar 2001 11:30:01 -0800 (PST) (envelope-from gnats) Received: from mumblefrotz.dyndns.org (cs92064.pp.htv.fi [212.90.92.64]) by hub.freebsd.org (Postfix) with ESMTP id 7E87E37B718 for ; Fri, 9 Mar 2001 11:28:10 -0800 (PST) (envelope-from ejk@pp.htv.fi) Received: from anthrax.mumblefrotz.dyndns.org (anthrax.mumblefrotz.dyndns.org [192.168.1.3]) by mumblefrotz.dyndns.org (8.11.1/8.11.1) with ESMTP id f29JS2J00559 for ; Fri, 9 Mar 2001 21:28:03 +0200 (EET) (envelope-from ejk@pp.htv.fi) Received: (from ejk@localhost) by anthrax.mumblefrotz.dyndns.org (8.11.2/8.11.2) id f29JS7411979; Fri, 9 Mar 2001 21:28:07 +0200 (EET) (envelope-from ejk) Message-Id: <200103091928.f29JS7411979@anthrax.mumblefrotz.dyndns.org> Date: Fri, 9 Mar 2001 21:28:07 +0200 (EET) From: Esa Karkkainen Reply-To: ejk@pp.htv.fi To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: conf/25639: /etc/mail/Makefile does not source /etc/rc.conf when starting sendmail Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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