On Wed, Jan 18, 2012 at 01:47:52PM +0000, Stuart Henderson wrote:
> OK sthen@.
> 
> It is easy to get in this state if untarring new base*.tgz on a
> system where sendmail is running.


Replacing the queue directory while sendmail was running is actually how
I produced the example.  However, it happens in real world cases as
well, like high load averages, out of memory, and too many child
processes.  In some cases, it could be reasonable to change the sendmail
configuration to adapt to the higher demand.  Then it should be possible
to use the rc.d script to restart it.


> On 2012/01/17 07:40, Dan Harnett wrote:
> > The sendmail daemon can be in a state where it is rejecting new messages
> > and sets the proc title accordingly.  The current rc.d script ignores
> > sendmail if it is in this state.
> > 
> >   $ pgrep -lf sendmail
> >   459 sendmail: rejecting new messages: min free: 100
> > 
> > I don't believe the wildcard following '(accepting|rejecting)' is really
> > needed either, but left it in.
> > 
> > Index: sendmail
> > ===================================================================
> > RCS file: /home/danh/.cvs/openbsd/src/etc/rc.d/sendmail,v
> > retrieving revision 1.4
> > diff -u -p -r1.4 sendmail
> > --- sendmail        12 Jul 2011 05:40:55 -0000      1.4
> > +++ sendmail        17 Jan 2012 11:59:54 -0000
> > @@ -6,7 +6,7 @@ daemon="/usr/sbin/sendmail"
> >  
> >  . /etc/rc.d/rc.subr
> >  
> > -pexp="(sendmail: accepting.*|${daemon}* -(q[0-9]|bd)*)"
> > +pexp="(sendmail: (accepting|rejecting).*|${daemon}* -(q[0-9]|bd)*)"
> >  
> >  rc_bg=YES

Reply via email to