On Sun, Mar 08, 1998 at 03:46:01PM -0600, CS wrote:
> Hi, All
> Where can I find a good Linux Admin book?  Online or book store.
> When my linux box boots without network connected.  It reports from
>  eth0  that my box is not connected to the net, but the boot process
> still tries to boot smbd, sendmail, ...etc.  How can I bypass all those
> network related daemons during the boot process if the machine is not
> connected to the net?

If your suffering from intolerable timeouts, one good thing to do is to
rewrite all of the init scripts so daemons are started in the background.
For examlpe, from the apache start up script in /etc/rc.d/init.d--

It says by default:
case "$1" in
  start)
          echo -n "Starting httpd: "
          daemon httpd
          echo
          touch /var/lock/subsys/httpd
          ;;
                                          

Change it to say
case "$1" in
  start)
          echo -n "Starting httpd: "
          (daemon httpd; echo; touch /var/lock/subsys/httpd) &
          ;;
  
This will also have the neat effect of speeding up booting whether you're
attached to the network or not.

-Sam

-- 
Samuel Ockman                     |  Work Linux?      |  VA Research 
Director of Software              |  Work with us.    |  Proud Corporate
1-888-LINUX-4U ext. 133           |  e-mail jobs@     |  Sponsor of Guerilla
www.varesearch.com                |  varesearch.com   |  Linux Development


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to