From hunt@mph124.rh.psu.edu  Thu Aug 28 10:11:40 1997
Received: from mph124.rh.psu.edu (hunt@MPH124.rh.psu.edu [128.118.126.83])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA10026
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Aug 1997 10:11:37 -0700 (PDT)
Received: (from hunt@localhost)
	by mph124.rh.psu.edu (8.8.7/8.8.7) id NAA17430;
	Thu, 28 Aug 1997 13:11:25 -0400 (EDT)
Message-Id: <199708281711.NAA17430@mph124.rh.psu.edu>
Date: Thu, 28 Aug 1997 13:11:25 -0400 (EDT)
From: Matthew Hunt <mph@pobox.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: sendmail 8.8.7 can't write sendmail.pid
X-Send-Pr-Version: 3.2

>Number:         4407
>Category:       bin
>Synopsis:       sendmail 8.8.7 can't write sendmail.pid
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 28 10:20:00 PDT 1997
>Closed-Date:    Sun Oct 12 16:03:39 MEST 1997
>Last-Modified:  Sun Oct 12 16:04:02 MEST 1997
>Originator:     Matthew Hunt
>Release:        FreeBSD 2.2-STABLE i386
>Organization:
None
>Environment:
FreeBSD mph124.rh.psu.edu 2.2-STABLE FreeBSD 2.2-STABLE #0: Wed Aug 20 11:06:06 EDT 1997     root@townhouse.dyn.ml.org:/usr/src/sys/compile/WOPR  i386

>Description:

sendmail 8.8.7 can't write /var/run/sendmail.pid.  If the file already
exists, it can write to it.  But we clean /var/run at boot.

>How-To-Repeat:

Boot a recent 2.2-STABLE system and look at /var/log/messages.

>Fix:

The following patch to etc/rc.  I have not tested it by rebooting, but
it is fairly trivial.


--- rc.orig	Thu Aug 28 13:05:35 1997
+++ rc	Thu Aug 28 13:07:03 1997
@@ -231,7 +231,8 @@
 fi
 
 if [ "X${sendmail_enable}" = X"YES" -a -r /etc/sendmail.cf ]; then
-	echo -n ' sendmail';	/usr/sbin/sendmail ${sendmail_flags}
+	echo -n ' sendmail';	/usr/bin/touch /var/run/sendmail.pid
+	/usr/sbin/sendmail ${sendmail_flags}
 fi
 
 echo '.'
>Release-Note:
>Audit-Trail:

From: "Matthew N. Dodd" <winter@jurai.net>
To: Matthew Hunt <mph@pobox.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG, GNATS Management <gnats@FreeBSD.ORG>,
        freebsd-bugs@hub.freebsd.org
Subject: Re: bin/4407: sendmail 8.8.7 can't write sendmail.pid
Date: Thu, 28 Aug 1997 16:53:55 -0400 (EDT)

 I this is a safe_write problem.
 
 Check the GID of /var/run
 
 On Thu, 28 Aug 1997, Matthew Hunt wrote:
 
 > 
 > >Number:         4407
 > >Category:       bin
 > >Synopsis:       sendmail 8.8.7 can't write sendmail.pid
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       medium
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Thu Aug 28 10:20:00 PDT 1997
 > >Last-Modified:
 > >Originator:     Matthew Hunt
 > >Organization:
 > None
 > >Release:        FreeBSD 2.2-STABLE i386
 > >Environment:
 > FreeBSD mph124.rh.psu.edu 2.2-STABLE FreeBSD 2.2-STABLE #0: Wed Aug 20 11:06:06 EDT 1997     root@townhouse.dyn.ml.org:/usr/src/sys/compile/WOPR  i386
 > 
 > >Description:
 > 
 > sendmail 8.8.7 can't write /var/run/sendmail.pid.  If the file already
 > exists, it can write to it.  But we clean /var/run at boot.
 > 
 > >How-To-Repeat:
 > 
 > Boot a recent 2.2-STABLE system and look at /var/log/messages.
 > 
 > >Fix:
 > 
 > The following patch to etc/rc.  I have not tested it by rebooting, but
 > it is fairly trivial.
 > 
 > 
 > --- rc.orig	Thu Aug 28 13:05:35 1997
 > +++ rc	Thu Aug 28 13:07:03 1997
 > @@ -231,7 +231,8 @@
 >  fi
 >  
 >  if [ "X${sendmail_enable}" = X"YES" -a -r /etc/sendmail.cf ]; then
 > -	echo -n ' sendmail';	/usr/sbin/sendmail ${sendmail_flags}
 > +	echo -n ' sendmail';	/usr/bin/touch /var/run/sendmail.pid
 > +	/usr/sbin/sendmail ${sendmail_flags}
 >  fi
 >  
 >  echo '.'
 > >Audit-Trail:
 > >Unformatted:
 > 
 
 /* 
    Matthew N. Dodd		| A memory retaining a love you had for life	
    winter@jurai.net		| As cruel as it seems nothing ever seems to
    http://www.jurai.net/~winter | go right - FLA M 3.1:53	
 */
 
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sun Oct 12 16:03:39 MEST 1997 
State-Changed-Why:  

>Unformatted:
