Skip site navigation (1)Skip section navigation (2)
Date:      01 Jun 1997 16:36:34 -0400
From:      Jay Sachs <sachs@interactive.net>
To:        questions@FreeBSD.org
Subject:   2.2.2, start_if.tun0 and sendmail
Message-ID:  <87zptarrfx.fsf@luddite.org>

next in thread | raw e-mail | index | archive | help

My 'net connection is made solely via PPP by the following line in
/etc/start_if.tun0:

  /usr/sbin/ppp -ddial ondemand >/dev/null 2>&1

sendmail is configured in /etc/rc.conf with

  sendmail_enable="YES"   # Run the sendmail daemon (or NO).
  sendmail_flags="-bd -q30m" # -bd is pretty mandatory

For whatever reason, sendmail won't daemonize until the ppp connection
is established.  The problem with this is that the boot-up process
waits for this to happen. I *could* edit /etc/rc to start sendmail up
in the background, but I hesitate to do that.  And I can't see a way
to pass the '&' as a bg indicator in rc.conf.  Perhaps there's
something wrong w/ my sendmail configuration?  Here it is:

  VERSIONID(`blah')dnl
  OSTYPE(bsd4.4)dnl
  DOMAIN(generic)dnl
  MASQUERADE_AS(interactive.net)
  FEATURE(masquerade_envelope)
  EXPOSED_USER(root)
  LOCAL_USER(root sachs)
  define(`LOCAL_RELAY', interactive.net)
  define(`SMART_HOST', interactive.net)
  MAILER(local)dnl
  MAILER(smtp)dnl


I understand that one other option is to put the ppp startup in
rc.local, in which case sendmail just breezes by.  But I'd like to
start up the ppp connection ASAP.

Any ideas?

-jay



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87zptarrfx.fsf>