From owner-freebsd-questions@FreeBSD.ORG Mon Mar 29 01:39:56 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E309216A4D0 for ; Mon, 29 Mar 2004 01:39:55 -0800 (PST) Received: from gwdu60.gwdg.de (gwdu60.gwdg.de [134.76.8.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2E0643D5C for ; Mon, 29 Mar 2004 01:39:54 -0800 (PST) (envelope-from kheuer2@gwdg.de) Received: from gwdu60.gwdg.de (localhost [127.0.0.1]) by gwdu60.gwdg.de (8.12.9p2/8.12.8) with ESMTP id i2T9drrB059926; Mon, 29 Mar 2004 11:39:53 +0200 (CEST) (envelope-from kheuer2@gwdg.de) Received: from localhost (kheuer2@localhost)i2T9djTK059923; Mon, 29 Mar 2004 11:39:53 +0200 (CEST) X-Authentication-Warning: gwdu60.gwdg.de: kheuer2 owned process doing -bs Date: Mon, 29 Mar 2004 11:39:45 +0200 (CEST) From: Konrad Heuer To: Octavian Hornoiu In-Reply-To: <004d01c4156f$379dfb30$0f00000a@phobos> Message-ID: <20040329113333.F58386@gwdu60.gwdg.de> References: <004d01c4156f$379dfb30$0f00000a@phobos> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: how to delay sendmail start? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Mar 2004 09:39:56 -0000 On Mon, 29 Mar 2004, Octavian Hornoiu wrote: > I would like to delay sendmail starting until AFTER my local daemons > start. Is there a way to do this or is it built into the base system. > Could I set SENDMAIL=NO in rc.conf and then write a script in local to > start the sendmail daemon? The reason I have to do this is because I'm > using a djbdns cache on the same machine that the machine uses to lookup > dns records and since it's not running yet when sendmail starts, > sendmail enters panic mode and does goofy stuff. As far as I can see you can set sendmail_enable="NONE" in /etc/rc.conf and copy /etc/rc.sendmail to /usr/local/etc/rc.d/zzz.sendmail (or whatever else is the last filename when sorted alphabetically) and modify it a little bit since you have to reset sendmail_enable in this script to start sendmail in the right way. Best regards Konrad Heuer (kheuer2@gwdg.de) ____ ___ _______ GWDG / __/______ ___ / _ )/ __/ _ \ Am Fassberg / _// __/ -_) -_) _ |\ \/ // / 37077 Goettingen /_/ /_/ \__/\__/____/___/____/ Germany