From owner-freebsd-questions@FreeBSD.ORG Tue Nov 13 17:14:49 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0916B3F5 for ; Tue, 13 Nov 2012 17:14:49 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) by mx1.freebsd.org (Postfix) with ESMTP id A1D1F8FC08 for ; Tue, 13 Nov 2012 17:14:47 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [172.17.17.101]) by email2.allantgroup.com (8.14.5/8.14.5) with ESMTP id qADHEj0e061506 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Nov 2012 11:14:46 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.5/8.14.5) with ESMTP id qADHEj2T017998 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Nov 2012 11:14:45 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.5/8.14.5/Submit) id qADHEjUA017997; Tue, 13 Nov 2012 11:14:45 -0600 (CST) (envelope-from dan) Date: Tue, 13 Nov 2012 11:14:45 -0600 From: Dan Nelson To: Karl Pielorz Subject: Re: Issues with smartd starting up at boot time - delays sever start? Message-ID: <20121113171445.GF20857@dan.emsphone.com> References: <73ADFF9FEC26D94D4727301D@MightyAtom.tdx.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <73ADFF9FEC26D94D4727301D@MightyAtom.tdx.co.uk> X-OS: FreeBSD 8.3-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97.6 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (email2.allantgroup.com [172.17.19.78]); Tue, 13 Nov 2012 11:14:46 -0600 (CST) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on email2.allantgroup.com X-Scanned-By: MIMEDefang 2.73 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 17:14:49 -0000 In the last episode (Nov 13), Karl Pielorz said: > I've noticed on our systems (9.0-Stable, amd64) that starting smartd at > boot time massively extends the startup time of the box. > > I think I've traced this down to smartd, and our use of the '-M test' > config option (which sends a test message, apparently forking to 'mail' - > and, as the config man page says - it will block until that command > returns). > > For whatever reason (networking not stable at that point in time, MTA not > started yet etc.) - on our machines this leaves smartd handing around for > minutes - before it returns, the machine starts up (and the status emails > arrive). > > Can anyone think of a 'simple' fix for this? - Is there anything I can do > to '/usr/local/etc/rc.d/smartd' to make it run later in the startup > process? Try adding "mail" to the REQUIRE: line, since sendmail has that in its PROVIDES: line. -- Dan Nelson dnelson@allantgroup.com