Date: Thu, 06 Mar 2008 16:23:00 +0300 From: Mike Makonnen <mtm@FreeBSD.Org> To: Giorgos Keramidas <keramida@freebsd.org> Cc: current@freebsd.org Subject: Re: latest rc.subr breaks etc/rc.d/sendmail Message-ID: <1204809780.885.3.camel@sol> In-Reply-To: <20080202012707.GA1800@kobe.laptop> References: <20080202012707.GA1800@kobe.laptop>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Sat, 2008-02-02 at 03:27 +0200, Giorgos Keramidas wrote: > Hi Mike, > > Revision 1.80 of src/etc/rc.subr stops Sendmail from starting > here with: > > root@kobe:/root# /etc/rc.d/sendmail start > Cannot 'start' sendmail. Set sendmail_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'. > root@kobe:/root# > > My /etc/rc.conf contains: > > root@kobe:/root# grep sendmail /etc/rc.conf > sendmail_enable="NO" > sendmail_outbound_enable="NO" > sendmail_submit_enable="YES" > sendmail_msp_queue_enable="YES" > root@kobe:/root# Can you try the attached patch please? In the long term I think the sendmail script will have to be broken up into its constituent parts, but this should fix the problem. Cheers. -- Mike Makonnen | GPG-KEY: http://people.freebsd.org/~mtm/mtm.asc mmakonnen @ gmail.com | AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55 mtm @ FreeBSD.Org | FreeBSD - http://www.freebsd.org [-- Attachment #2 --] Index: etc/rc.d/sendmail =================================================================== RCS file: /home/ncvs/src/etc/rc.d/sendmail,v retrieving revision 1.18 diff -u -r1.18 sendmail --- etc/rc.d/sendmail 8 Dec 2007 07:20:22 -0000 1.18 +++ etc/rc.d/sendmail 21 Feb 2008 07:38:42 -0000 @@ -72,7 +72,9 @@ fi } -run_rc_command "$1" +if checkyesno sendmail_enable; then + run_rc_command "$1" +fi required_files= @@ -90,9 +92,11 @@ run_rc_command "$1" fi -name="sendmail_clientmqueue" -rcvar="sendmail_msp_queue_enable" -start_cmd="${command} ${sendmail_msp_queue_flags}" -pidfile="${sendmail_mspq_pidfile:-/var/spool/clientmqueue/sm-client.pid}" -required_files="/etc/mail/submit.cf" -run_rc_command "$1" +if checkyesno sendmail_msp_queue_enable; then + name="sendmail_clientmqueue" + rcvar="sendmail_msp_queue_enable" + start_cmd="${command} ${sendmail_msp_queue_flags}" + pidfile="${sendmail_mspq_pidfile:-/var/spool/clientmqueue/sm-client.pid}" + required_files="/etc/mail/submit.cf" + run_rc_command "$1" +fihelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1204809780.885.3.camel>
