Subject: Re: Faster boot - Delaying rc.conf services
To: C. K. <ck74@operamail.com>
From: Giles Lean <giles.lean@pobox.com>
List: netbsd-users
Date: 08/12/2007 10:38:56
C. K. <ck74@operamail.com> wrote:

> I would like to have fast initial boot and it could be better to have ie; 5
> mins delay in starting following services -- which are currently in rc.conf
> file:
> 
> sshd=YES
> apache=YES
> mysqld=YES
> lpd=YES
> and_similar_softwares=YES

o turn them off in /etc/rc.conf and start them manually later?

o reorder the startup scripts so that the service(s) you want
  start earlier?

o use a different startup process such as launchd[1] or
  daemontools[2] to control these services?

o determine which of the services is/are slow starting up, and
  fix them (surely sshd and lpd are fast to start?)

  (I'd wonder what the slowness is: shortage of CPU resources,
  or are the services being held up e.g. by slow DNS?)

> Any advise other than compiling kernel? Boot untill dhclient
> service starts is only 22 secs and that's acceptable.

I don't see how compiling a new kernel is relevant; the kernel
finishes booting before any of the rc scripts run.

Giles

[1] http://launchd.macosforge.org/
[2] http://cr.yp.to/daemontools.html