Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Issues with smartd starting up at boot time - delays sever start?

9 views
Skip to first unread message

Karl Pielorz

unread,
Nov 13, 2012, 5:49:59 AM11/13/12
to

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
_______________________________________________
freebsd-...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Dan Nelson

unread,
Nov 13, 2012, 12:14:45 PM11/13/12
to
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
dne...@allantgroup.com

Karl Pielorz

unread,
Nov 14, 2012, 12:52:41 PM11/14/12
to


--On 13 November 2012 11:14 -0600 Dan Nelson <dne...@allantgroup.com>
wrote:

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

Thanks, I'll give that a go when I get a chance,

-Karl
0 new messages