From 54efe468d204ca7816802446b8cd16ed7cd7972e Mon Sep 17 00:00:00 2001 From: robert <> Date: Thu, 7 Jul 2011 05:00:19 +0000 Subject: [PATCH] sendmail stalls for at least a minute if it cannot resolve or connect to the machine's hostname either because there is a network problem or because /etc/hosts is wrong. while trying to resolve it also does not change it's process name so let's cope with that in the rc script --- src/etc/rc.d/sendmail | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/etc/rc.d/sendmail b/src/etc/rc.d/sendmail index 65450e39..6959c4a1 100644 --- a/src/etc/rc.d/sendmail +++ b/src/etc/rc.d/sendmail @@ -1,11 +1,13 @@ #!/bin/sh # -# $OpenBSD: sendmail,v 1.1 2011/07/06 18:55:36 robert Exp $ +# $OpenBSD: sendmail,v 1.2 2011/07/07 05:00:19 robert Exp $ daemon="/usr/sbin/sendmail" . /etc/rc.d/rc.subr -pexp="sendmail: accepting.*" +pexp="(sendmail: accepting.*|${daemon} ${daemon_flags})" + +rc_bg=YES rc_cmd $1