Date: Thu, 15 Apr 2010 00:43:30 +0200 From: smyru@heron.pl To: dougb@FreeBSD.org,freebsd-rc@FreeBSD.org Subject: Re: conf/145530: [rc.d] ntpdate(8): ntpdate rc needs wpa_supplicant to go online Message-ID: <20100413202145.M96857@heron.pl> In-Reply-To: <201004092358.o39NwXVE012127@freefall.freebsd.org> References: <201004092358.o39NwXVE012127@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hi, Here is more detail on my particular case. The rc.conf: hostname="dsk.smyrak.com" ifconfig_re0_name="eth0" ifconfig_eth0="inet 172.16.16.1 netmask 255.255.255.0" wlans_ral0="wlan0" ifconfig_wlan0="WPA DHCP" gateway_enable="YES" accounting_enable="NO" clear_tmp_enable="YES" ftpd_enable="NO" ipv6_enable="YES" linux_enable="YES" kern_securelevel_enable="NO" moused_enable="NO" named_enable="NO" ntpdate_enable="YES" powerd_enable="YES" sendmail_enable="NONE" sshd_enable="YES" usbd_enable="YES" inetd_flags="-l" rpcbind_flags="-l" syslogd_flags="-ss" /etc/ntp.conf server ntp.task.gda.pl prefer server pl.pool.ntp.org server 0.europe.pool.ntp.org server 1.europe.pool.ntp.org server 2.europe.pool.ntp.org server 3.europe.pool.ntp.org driftfile /var/db/ntp.drift logfile /var/log/ntp.log First I blamed it on 'background_dhclient="YES"' but removing it did not help. Note there is no local name server, the host relies on the router for this, so this is one more netwerk dependency. I did some testing with RC_DEBUG yesterday. Attached the putput from dmesg. So actually the wpa script _is_ run before ntpdate, though this seems to be not enough. See the last section in log. Is it possible to make ntpdate script wait until the link is up? -- Piotr Smyrak piotr.smyrak@heron.pl [-- Attachment #2 --] 250 wlan0: Ethernet address: 00:0e:2e:49:1c:e3 251 /etc/rc.d/wpa_supplicant: DEBUG: pid file (/var/run/wpa_supplicant/wlan0.pid): not readable. 252 /etc/rc.d/wpa_supplicant: DEBUG: load_kld: wlan_wep kernel module already loaded. 253 Starting wpa_supplicant. 254 /etc/rc.d/wpa_supplicant: DEBUG: run_rc_command: doit: /usr/sbin/wpa_supplicant -s -B -i wlan0 -c /etc/wpa_supplicant.conf -D bsd -P /var/ 255 /etc/rc: DEBUG: checkyesno: synchronous_dhclient is set to NO. 256 Starting Network: lo0 ral0. 257 /etc/rc: DEBUG: checkyesno: rc_startmsgs is set to YES. 258 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 259 options=3<RXCSUM,TXCSUM> 260 inet 127.0.0.1 netmask 0xff000000 261 ral0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290 262 ether 00:0e:2e:49:1c:e3 263 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) 264 status: no carrier [...] 476 /etc/rc: DEBUG: checkyesno: named_enable is set to NO. 477 /etc/rc: DEBUG: checkyesno: ntpdate_enable is set to YES. 478 /etc/rc: DEBUG: run_rc_command: doit: ntpdate_start 479 Setting date via ntp. 480 Error : hostname nor servname provided, or not known 481 10 Apr 10:29:59 482 ntpdate[1025]: can't find host ntp.task.gda.pl 483 484 Error : hostname nor servname provided, or not known 485 10 Apr 10:29:59 486 ntpdate[1025]: can't find host pl.pool.ntp.org 487 488 Error : hostname nor servname provided, or not known 489 10 Apr 10:29:59 490 ntpdate[1025]: can't find host 0.europe.pool.ntp.org 491 492 Error : hostname nor servname provided, or not known 493 10 Apr 10:29:59 494 ntpdate[1025]: can't find host 1.europe.pool.ntp.org 495 496 Error : hostname nor servname provided, or not known 497 10 Apr 10:29:59 498 ntpdate[1025]: can't find host 2.europe.pool.ntp.org 499 500 Error : hostname nor servname provided, or not known 501 10 Apr 10:29:59 502 ntpdate[1025]: can't find host 3.europe.pool.ntp.org 503 504 10 Apr 10:29:59 505 ntpdate[1025]: no servers can be used, exiting [...] 583 wlan0: link state changed to UP 584 ral0: need multicast update callback 585 ral0: need multicast update callback 586 ral0: need multicast update callback
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100413202145.M96857>
