Re: Postfix race condition at boot

Previous thread: Re: apc Back-UPS ES 525 by Uwe Dippel on Sunday, July 20, 2008 - 1:30 am. (1 message)

Next thread: Re: Unable to connect to Xvfb using sshd by Stuart Henderson on Sunday, July 20, 2008 - 3:40 am. (2 messages)
From: Uwe Dippel
Date: Sunday, July 20, 2008 - 1:48 am

Alright. I have exactly the same problem, asked ports@ and got only an
off-list mail, confirming this. Plus, one of a chap who has a similar
problem with another application. 

I wonder why there was nothing on the list, though. I know all too well,
that the people here care for correctness, though the start sequence seems
faltering, or maybe unclear?

I do also confirm, that the problem appears only on my smallest and
oldest box: 1.7 GHz, 256 MB. 

Solution? Remove the sendmail-flags from rc.conf.local and put a 'postfix
start' at the end of rc.local. That should help.

Uwe

From: Damien Miller
Date: Sunday, July 20, 2008 - 3:19 am

That shouldn't happen, because syslogd delays its exit until after
its log sockets have been established.

Maybe this will help (but I think not):

Index: syslogd.c
===================================================================
RCS file: /cvs/src/usr.sbin/syslogd/syslogd.c,v
retrieving revision 1.101
diff -u -p -r1.101 syslogd.c
--- syslogd.c	21 Apr 2008 22:09:51 -0000	1.101
+++ syslogd.c	20 Jul 2008 10:18:24 -0000
@@ -485,7 +485,8 @@ main(int argc, char *argv[])
 			break;
 		default:
 			close(lockpipe[1]);
-			read(lockpipe[0], &c, 1);
+			while (read(lockpipe[0], &c, 1) == -1 && errno == EINTR)
+				;
 			_exit(0);
 		}
 	}

From: Brian Keefer
Date: Monday, September 22, 2008 - 8:23 pm

I just saw the same thing after upgrading my Mac Mini G4 from 4.0 to  
4.4-current and upgrading Postfix to 2.6.20080726.  I have the sasl2  
flavor installed, so perhaps it's a problem with that, as mentioned  
later in this thread?

At your suggestion, I changed sendmail_flags to "NO" in /etc/ 
rc.conf.local and simply added a /usr/local/sbin/postfix start to/etc/ 
rc.local .  All working fine now...

--
bk

Previous thread: Re: apc Back-UPS ES 525 by Uwe Dippel on Sunday, July 20, 2008 - 1:30 am. (1 message)

Next thread: Re: Unable to connect to Xvfb using sshd by Stuart Henderson on Sunday, July 20, 2008 - 3:40 am. (2 messages)