Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 2008 10:31:32 +0100
From:      michel Junger <michel.junger@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   start/stop network services on a Laptop 
Message-ID:  <20080321093132.GA39383@mua.local>

next in thread | raw e-mail | index | archive | help

Hello,

First, my question:
Is there a standard way to boot without network services and then to
start them all later ?

Second, the situation:
I've got a laptop running FreeBSD 7 fine. By default it boots without
enabling network interface, later I manually run 
/etc/rc.d/netif start ath0 and /etc/rc.d/routing start if needed.

I've got this lines in /etc/rc.conf:
#
network_interfaces="lo0"
ifconfig_ath0="inet 192.168.X.Y  netmask 255.255.255.0 ssid thessid"
#
sshd_enable="YES"
ntpdate_enable="YES" 
ntpdate_flags="-4 -b"
ntpdate_hosts="ntpd-server"

There's two problems with this configuration:
- At boot time ntpdate try to contact the ntpd-server but naturaly it
fails (no network).
- sshd always runs even if there's no network.

So must I re-invent the wheel or is there a better way to do it.
Thanks in advance for any help.

Michel.

  





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080321093132.GA39383>