On 2/10/07, Robert Connolly <[EMAIL PROTECTED]> wrote:
> Hello. In the blfs-bootscript for ntpd, why is "ntpd -gqx" executed directly,
> instead of "loadproc /usr/sbin/ntpd -gqx"?

Good question.

> Also, lets say I screwed my network config and the network doesn't come up...
> ntpd will sit there forever waiting for server names to resolve. Is there
> something we can do about this, like putting ntpd in the background?

Is there a timeout or something?

Here's something I added to my dhclient service script that checks
carrier status (not the same as the network being down).
Unfortunately, you need to know which interface you're using:

                # check carrier status (cable)
                carrier=`cat /sys/class/net/${1}/carrier 2>/dev/null`
                if [ -z "$carrier" ] || [ "$carrier" -eq 0 ]; then
                        boot_mesg "No carrier for the ${1} interface.
Skipping dhclient..."
                        echo_ok
                        exit 0
                fi

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to