Browse Source

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
OPENBSD_5_0
robert 13 years ago
parent
commit
54efe468d2
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/etc/rc.d/sendmail

+ 4
- 2
src/etc/rc.d/sendmail View File

@ -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

Loading…
Cancel
Save