From owner-freebsd-questions@FreeBSD.ORG Tue Nov 13 10:51:41 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 8F53552D for ; Tue, 13 Nov 2012 10:51:41 +0000 (UTC) (envelope-from kpielorz_lst@tdx.co.uk) Received: from mail.tdx.com (mail.tdx.com [62.13.128.18]) by mx1.freebsd.org (Postfix) with ESMTP id 270558FC13 for ; Tue, 13 Nov 2012 10:51:40 +0000 (UTC) Received: from MightyAtom.tdx.co.uk (storm.tdx.co.uk [62.13.130.251]) (authenticated bits=0) by mail.tdx.com (8.14.3/8.14.3/) with ESMTP id qADAo5uL089766 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Tue, 13 Nov 2012 10:50:06 GMT Date: Tue, 13 Nov 2012 10:49:59 +0000 From: Karl Pielorz To: freebsd-questions@freebsd.org Subject: Issues with smartd starting up at boot time - delays sever start? Message-ID: <73ADFF9FEC26D94D4727301D@MightyAtom.tdx.co.uk> X-Mailer: Mulberry/4.0.8 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 10:51:41 -0000 Hi, 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? Does the dreaded '/etc/rc.local' still get run -after- everything else? (Worst case I could launch it from there). Thanks, -Karl