public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] NTP: ntp-client doesn't start
@ 2006-11-07  9:58 Christopher Kern
  2006-11-07 14:53 ` PaulNM
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Kern @ 2006-11-07  9:58 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 30027 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hope this helps...


When investigating this myself, I found that I needed to set up a link
to the service in /etc/init.d with this command as the root user:

"cd /etc/runlevels/default && ln -s /etc/init.d/ntp-client ." (no
quotes, of course)

This works fine at boot, as the service start is indicated in the boot
display, and the time is indeed set to the correct time once executed
at boot time. I also found that one can alter the timeout for this
service by changing the NTPCLIENT_TIMEOUT variable in
/etc/conf.d/ntp-client file so that it is whatever you'd like it to
be. The default setting was 30 seconds, but I thought a shorter time
would have been better, especially at boot time.

Contents of /etc/conf.d/ntp-client:

# /etc/conf.d/ntp-client

# Command to run to set the clock initially
# Most people should just leave this line alone ...
# however, if you know what you're doing, and you
# want to use ntpd to set the clock, change this to 'ntpd'
NTPCLIENT_CMD="ntpdate"

# Options to pass to the above command
# This default setting should work fine but you should
# change the default 'pool.ntp.org' to something closer
# to your machine.  See http://www.pool.ntp.org/ or
# try running `netselect -s 3 pool.ntp.org`.
NTPCLIENT_OPTS=" -b -u pool.ntp.org"

# How long to wait (in seconds) before giving up.
# Useful for when you boot and DNS/internet isn't
# really available but you have your net interface
# come up with say a static IP.
NTPCLIENT_TIMEOUT=16

~    There is an ntp.conf file in /etc which sets up the server pool,
driftfile, and restrictions. There is the adjtime file in /etc which
appears to define the system clock setting, and is the last line of
said file. Mine is set to "UTC" which is the Greenwich Mean Time
(GMT). There is a clock file in /etc/conf.d that also has a variable
for the system clock, "CLOCK=". In this file, my setting is "UTC"
again, like so: "CLOCK=UTC". I do not know what'll happen if the CLOCK
variable in /etc/conf.d/clock and the last line of /etc/adjtime isn't
the same. Lastly, this /etc/conf.d/clock file also seems, at shutdown,
to set the hardware clock to the then current system time when the
"CLOCK_SYSTOHC" variable is set to "yes" like so:

Contents of /etc/conf.d/clock:

# /etc/conf.d/clock

# Set CLOCK to "UTC" if your system clock is set to UTC (also known as
# Greenwich Mean Time).  If your clock is set to the local time, then
# set CLOCK to "local".  Note that if you dual boot with Windows, then
# you should set it to "local".

CLOCK="UTC"

# If you wish to pass any other arguments to hwclock during bootup,
# you may do so here.

CLOCK_OPTS=""

# If you want to set the Hardware Clock to the current System Time
# during shutdown, then say "yes" here.

CLOCK_SYSTOHC="yes"


### ALPHA SPECIFIC OPTIONS ###

# If your alpha uses the SRM console, set this to "yes".
SRM="no"

# If your alpha uses the ARC console, set this to "yes".
ARC="no"

~    To wrap it up, I could not understand why the service appears to
be set up to run just once at boot up. I originally modified the
ntp-client file in /etc/init.d to write its output to a
/var/log/net.log file to see if it was invoked any time after the
initial run, but found nothing in the logs to reflect it after a
couple of days. I often have some of my machines up for days on end,
and after a few days, the clock can become off by some time. If I left
it for long, I'd get compile warnings, and sometimes errors, whenever
I was updating software. A sample of one such error on a Gentoo
machine might be like so:

make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Warning: File
`/usr/src/linux-2.6.17-gentoo-r8/arch/i386/mach-es7000/Makefile' has
modification time 1802 s in the future.

Here I discovered that my clock has skewed minutes into the past and
the makefile is with a modify time 32 minutes in the future. To
rectify this, I set up a cron job to execute the ntp-client once a
day. I also modified a line in the /etc/init.d/ntp-client file. The
cron job is this:

0 0 * * * /etc/init.d/ntp-client stop >/dev/null 2>&1 ; sleep 2;
/etc/init.d/ntp-client start >/dev/null/ 2>&1

~    And this line was put into the crontab using the "crontab -e"
command. My /etc/init.d/ntp-client file has the following line:

${NTPCLIENT_CMD} ${NTPCLIENT_OPTS} >/dev/null &

~    I modified it to look like so:

${NTPCLIENT_CMD} ${NTPCLIENT_OPTS} >> /var/log/net.log 2>&1 &

~    Now whenever the cronjob runs, I get this in the /var/log/net.log
file:

# tail -f /var/log/net.log
~ 1 Nov 00:00:11 ntpdate[10858]: step time server 195.234.188.3 offset
1.033035 sec
~ 2 Nov 00:00:18 ntpdate[11481]: step time server 195.234.188.3 offset
1.014752 sec
~ 3 Nov 00:00:16 ntpdate[28307]: step time server 66.98.194.91 offset
2.158018 sec
~ 4 Nov 00:00:18 ntpdate[30128]: step time server 69.26.178.19 offset
1.018677 sec
~ 5 Nov 00:00:12 ntpdate[30753]: step time server 66.98.194.91 offset
- -0.007693 sec
~ 6 Nov 00:00:19 ntpdate[30880]: step time server 66.98.194.91 offset
2.001347 sec

~    BTW, I'm running Gentoo on an 10-year-old machine. It is with a
Micronics W6LI dual Pentium Pro Mainboard. The CPUs are at 200MHz, and
the machine includes 256MB EDO (w/parity) RAM (DIMMS), and 3 18GB SCSI
disks. The machine is rock steady with Gentoo 2006.1. I've run this
machine dual booting between FreeBSD 6.0 and Debian stable. The
FreeBSD and Debian stable OSs would run for a while and then crash
with no opportunity to find out exactly why. Though I tried to
discover this over a great period of time, I really haven't figured it
out. Still, I have my suspicions. The Gentoo seems to just go and go.
No problems whatsoever, so far --- well, since the install was
complete, anyways. I've installed it just a couple of weeks ago. It
literally took days to install, and it crashed before completion. But
there was enough there to fix things. Here are a few of the logs, in
case anyone's interested:

# dmesg
Linux version 2.6.17-gentoo-r8 (root@psycho) (gcc version 4.1.1
(Gentoo 4.1.1)) #1 SMP Sun Nov 5 08:38:19 GMT 2006
BIOS-provided physical RAM map:
~ BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
~ BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
~ BIOS-e820: 00000000000f9ec1 - 0000000000100000 (reserved)
~ BIOS-e820: 0000000000100000 - 0000000010000000 (usable)
~ BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
~ BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
~ BIOS-e820: 00000000ffff9ec1 - 0000000100000000 (reserved)
0MB HIGHMEM available.
256MB LOWMEM available.
found SMP MP-table at 000f9a20
On node 0 totalpages: 65536
~  DMA zone: 4096 pages, LIFO batch:0
~  Normal zone: 61440 pages, LIFO batch:15
DMI not present or invalid.
ACPI: Unable to locate RSDP
Intel MultiProcessor Specification v1.4
~    Virtual Wire compatibility mode.
OEM ID: INTEL    Product ID: 440FX        APIC at: 0xFEE00000
Processor #1 6:1 APIC version 17
Processor #0 6:1 APIC version 17
I/O APIC #2 Version 17 at 0xFEC00000.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Processors: 2
Allocating PCI resources starting at 20000000 (gap: 10000000:eec00000)
Built 1 zonelists
Kernel command line: init=/linuxrc ramdisk=8192 idebus=33 nomce
nopcmcia noagp nosata nohotplug nodhcp nodmraid nofstab panic=8
root=/dev/ram0 real_root=/dev/sdc3
ide_setup: idebus=33
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
Initializing CPU#0
CPU 0 irqstacks, hard=c0517000 soft=c050f000
PID hash table entries: 2048 (order: 11, 8192 bytes)
Detected 199.316 MHz processor.
Using tsc for high-res timesource
Speakup v-2.00 CVS: Mon May 1 09:46:33 EDT 2006 : initialized
Console: colour VGA+ 80x25
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 252676k/262144k available (2766k kernel code, 8848k reserved,
1106k data, 236k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor
mode... Ok.
Calibrating delay using timer specific routine.. 399.54 BogoMIPS
(lpj=1997724)
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 0000fbff 00000000 00000000 00000000
00000000 00000000 00000000
CPU: After vendor identify, caps: 0000fbff 00000000 00000000 00000000
00000000 00000000 00000000
CPU: L1 I cache: 8K, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: After all inits, caps: 0000f3ff 00000000 00000000 00000040
00000000 00000000 00000000
Checking 'hlt' instruction... OK.
Freeing SMP alternatives: 20k freed
CPU0: Intel Pentium Pro stepping 09
Booting processor 1/0 eip 2000
CPU 1 irqstacks, hard=c0518000 soft=c0510000
Initializing CPU#1
Calibrating delay using timer specific routine.. 398.66 BogoMIPS
(lpj=1993307)
CPU: After generic identify, caps: 0000fbff 00000000 00000000 00000000
00000000 00000000 00000000
CPU: After vendor identify, caps: 0000fbff 00000000 00000000 00000000
00000000 00000000 00000000
CPU: L1 I cache: 8K, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: After all inits, caps: 0000f3ff 00000000 00000000 00000040
00000000 00000000 00000000
CPU1: Intel Pentium Pro stepping 09
Total of 2 processors activated (798.20 BogoMIPS).
ExtINT not setup in hardware but reported by MP table
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=0 pin2=0
checking TSC synchronization across 2 CPUs: passed.
Brought up 2 CPUs
migration_cost=8379
checking if image is initramfs... it is
Freeing initrd memory: 2047k freed
NET: Registered protocol family 16
EISA bus registered
PCI: PCI BIOS revision 2.10 entry at 0xfd9d6, last bus=1
Setting up standard PCI resources
ACPI: Subsystem revision 20060127
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
Boot video device is 0000:01:01.0
PCI->APIC IRQ transform: 0000:00:0f.0[A] -> IRQ 19
PCI->APIC IRQ transform: 0000:00:0f.1[B] -> IRQ 16
PCI->APIC IRQ transform: 0000:00:0f.2[C] -> IRQ 17
PCI->APIC IRQ transform: 0000:00:0f.3[A] -> IRQ 19
PCI->APIC IRQ transform: 0000:00:10.0[A] -> IRQ 18
PCI->APIC IRQ transform: 0000:00:12.0[A] -> IRQ 16
PCI: Bridge: 0000:00:11.0
~  IO window: disabled.
~  MEM window: f0c00000-f0cfffff
~  PREFETCH window: e8000000-efffffff
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 4096)
TCP reno registered
audit: initializing netlink socket (disabled)
audit(1162762388.870:1): initialized
squashfs: version 3.0 (2006/03/15) Phillip Lougher
JFS: nTxBlock = 1992, nTxLock = 15936
SGI XFS with ACLs, security attributes, realtime, large block numbers,
no debug enabled
SGI XFS Quota Management subsystem
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Limiting direct PCI/PCI transfers.
Activating ISA DMA hang workarounds.
initialized device: /dev/synth, node ( MAJOR 10, MINOR 25 )
isapnp: Scanning for PnP cards...
pnp: SB audio device quirk - increasing port range
isapnp: Card 'Creative ViBRA16CL PnP'
isapnp: 1 Plug & Play card detected total
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes
PIIX3: IDE controller at PCI slot 0000:00:07.1
PIIX3: chipset revision 0
PIIX3: not 100% native mode: will probe irqs later
~    ide0: BM-DMA at 0xfbf0-0xfbf7, BIOS settings: hda:pio, hdb:pio
~    ide1: BM-DMA at 0xfbf8-0xfbff, BIOS settings: hdc:pio, hdd:pio
Probing IDE interface ide0...
input: AT Translated Set 2 keyboard as /class/input/input0
input: ImExPS/2 Generic Explorer Mouse as /class/input/input1
Probing IDE interface ide1...
hdc: SAMSUNG DVD-ROM SD-816B, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide0...
hdb: LITE-ON DVDRW SHW-160P6S, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide2...
Probing IDE interface ide3...
Probing IDE interface ide4...
Probing IDE interface ide5...
hdb: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(66)
Uniform CD-ROM driver Revision: 3.20
hdc: ATAPI 48X DVD-ROM drive, 512kB Cache, (U)DMA
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0
~        <Adaptec 2940 Ultra SCSI adapter>
~        aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs

~  Vendor: SEAGATE   Model: SX118273LC        Rev: 6367
~  Type:   Direct-Access                      ANSI SCSI revision: 02
scsi0:A:0:0: Tagged Queuing enabled.  Depth 32
~ target0:0:0: Beginning Domain Validation
~ target0:0:0: wide asynchronous
~ target0:0:0: FAST-10 WIDE SCSI 20.0 MB/s ST (100 ns, offset 8)
~ target0:0:0: Domain Validation skipping write tests
~ target0:0:0: Ending Domain Validation
~  Vendor: SEAGATE   Model: SX118273LC        Rev: 6678
~  Type:   Direct-Access                      ANSI SCSI revision: 02
scsi0:A:1:0: Tagged Queuing enabled.  Depth 32
~ target0:0:1: Beginning Domain Validation
~ target0:0:1: wide asynchronous
~ target0:0:1: FAST-10 WIDE SCSI 20.0 MB/s ST (100 ns, offset 8)
~ target0:0:1: Domain Validation skipping write tests
~ target0:0:1: Ending Domain Validation
~  Vendor: SEAGATE   Model: SX118273LC        Rev: 6679
~  Type:   Direct-Access                      ANSI SCSI revision: 02
scsi0:A:2:0: Tagged Queuing enabled.  Depth 32
~ target0:0:2: Beginning Domain Validation
~ target0:0:2: wide asynchronous
~ target0:0:2: FAST-10 WIDE SCSI 20.0 MB/s ST (100 ns, offset 8)
~ target0:0:2: Domain Validation skipping write tests
~ target0:0:2: Ending Domain Validation
SCSI device sda: 35566480 512-byte hdwr sectors (18210 MB)
sda: Write Protect is off
sda: Mode Sense: cb 00 10 08
SCSI device sda: drive cache: write through w/ FUA
SCSI device sda: 35566480 512-byte hdwr sectors (18210 MB)
sda: Write Protect is off
sda: Mode Sense: cb 00 10 08
SCSI device sda: drive cache: write through w/ FUA
~ sda: sda1 sda2
sd 0:0:0:0: Attached scsi disk sda
SCSI device sdb: 35566480 512-byte hdwr sectors (18210 MB)
sdb: Write Protect is off
sdb: Mode Sense: cb 00 10 08
SCSI device sdb: drive cache: write through w/ FUA
SCSI device sdb: 35566480 512-byte hdwr sectors (18210 MB)
sdb: Write Protect is off
sdb: Mode Sense: cb 00 10 08
SCSI device sdb: drive cache: write through w/ FUA
~ sdb: sdb1
~ sdb1: <bsd: sdb5 sdb6 sdb7 sdb8 sdb9 >
sd 0:0:1:0: Attached scsi disk sdb
SCSI device sdc: 35566480 512-byte hdwr sectors (18210 MB)
sdc: Write Protect is off
sdc: Mode Sense: cb 00 10 08
SCSI device sdc: drive cache: write through w/ FUA
SCSI device sdc: 35566480 512-byte hdwr sectors (18210 MB)
sdc: Write Protect is off
sdc: Mode Sense: cb 00 10 08
SCSI device sdc: drive cache: write through w/ FUA
~ sdc: sdc1 sdc2 sdc3
sd 0:0:2:0: Attached scsi disk sdc
PCI: Enabling device 0000:00:0f.2 (0014 -> 0016)
PCI: VIA IRQ fixup for 0000:00:0f.2, from 11 to 1
ehci_hcd 0000:00:0f.2: EHCI Host Controller
ehci_hcd 0000:00:0f.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:0f.2: irq 17, io mem 0xf0dffc00
ehci_hcd 0000:00:0f.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
USB Universal Host Controller Interface driver v3.0
PCI: Enabling device 0000:00:0f.0 (0014 -> 0015)
PCI: VIA IRQ fixup for 0000:00:0f.0, from 10 to 3
uhci_hcd 0000:00:0f.0: UHCI Host Controller
uhci_hcd 0000:00:0f.0: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:0f.0: irq 19, io base 0x0000ecc0
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
PCI: Enabling device 0000:00:0f.1 (0014 -> 0015)
PCI: VIA IRQ fixup for 0000:00:0f.1, from 9 to 0
uhci_hcd 0000:00:0f.1: UHCI Host Controller
uhci_hcd 0000:00:0f.1: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:0f.1: irq 16, io base 0x0000eca0
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
EISA: Probing bus 0 at eisa.0
EISA: Detected 0 cards.
Advanced Linux Sound Architecture Driver Version 1.0.11rc4 (Wed Mar 22
10:27:24 2006 UTC).
pnp: Device 00:01.00 activated.
ALSA device list:
~  #0: Sound Blaster 16 at 0x220, irq 5, dma 1&5
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Starting balanced_irq
Using IPI Shortcut mode
Freeing unused kernel memory: 236k freed
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
sl811: driver sl811-hcd, 19 May 2005
ieee1394: Initialized config rom entry `ip1394'
PCI: Enabling device 0000:00:0f.3 (0014 -> 0017)
PCI: VIA IRQ fixup for 0000:00:0f.3, from 10 to 3
ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[19]
MMIO=[f0dff000-f0dff7ff]  Max Packet=[2]  IR/IT contexts=[4/8]
ohci1394: fw-host0: Serial EEPROM has suspicious values, attempting to
setting max_packet_size to 512 bytes
ieee1394: sbp2: Driver forced to serialize I/O (serialize_io=1)
ieee1394: sbp2: Try serialize_io=0 for better performance
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[001106000000b377]
UDF-fs: No VRS found
XFS mounting filesystem sdc3
Ending clean XFS mount for filesystem: sdc3
Adding 265032k swap on /dev/sda1.  Priority:1 extents:1 across:265032k
Adding 506036k swap on /dev/sdc2.  Priority:2 extents:1 across:506036k
Real Time Clock Driver v1.12ac
8139too Fast Ethernet driver 0.9.27
PCI: Enabling device 0000:00:10.0 (0004 -> 0007)
eth0: RealTek RTL8139 at 0xd0a08800, 00:04:e2:11:21:45, IRQ 18
eth0:  Identified 8139 chip type 'RTL-8139C'
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
savagefb: mapped io at d0b00000
savagefb: probed videoram:  4096k
savagefb: Detected current MCLK value of 120511 kHz
savagefb: mapped framebuffer at d0c00000, pbase == e8000000
savagefb v0.4.0_2.6: 3968kB VRAM, using 800x600, 37.878kHz, 60Hz
Console: switching to colour frame buffer device 100x37
fb: S3 Savage4 frame buffer device
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.


# cat /proc/interrupts
~           CPU0       CPU1
~  0:    4642229    4629208    IO-APIC-edge  timer
~  1:       6447       7043    IO-APIC-edge  i8042
~  2:          0          0          XT-PIC  cascade
~  5:          0          0    IO-APIC-edge  SoundBlaster
~  8:          2          0    IO-APIC-edge  rtc
~ 12:      14269      15147    IO-APIC-edge  i8042
~ 15:         22          3    IO-APIC-edge  ide1
~ 16:     141425     142631   IO-APIC-level  aic7xxx, uhci_hcd:usb3
~ 17:          0          0   IO-APIC-level  ehci_hcd:usb1
~ 18:      87892          1   IO-APIC-level  eth0
~ 19:          2          0   IO-APIC-level  uhci_hcd:usb2, ohci1394
NMI:          0          0
LOC:    9271910    9271909
ERR:          0
MIS:          0

# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma]
(rev 02)
00:07.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton
II] (rev 01)
00:07.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE
[Natoma/Triton II]
00:0f.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 61)
00:0f.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 61)
00:0f.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 63)
00:0f.3 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host
Controller (rev 46)
00:10.0 Ethernet controller: Accton Technology Corporation SMC2-1211TX
(rev 10)
00:11.0 PCI bridge: Hint Corp HB6 Universal PCI-PCI bridge
(non-transparent mode) (rev 12)
00:12.0 SCSI storage controller: Adaptec AHA-2940U/UW/D / AIC-7881U
01:01.0 VGA compatible controller: S3 Inc. Savage 4 (rev 03)

# lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

# ifconfig
eth0      Link encap:Ethernet  HWaddr ##:##:##:##:##:##
~          inet addr:192.168.1.20  Bcast:192.168.1.31
Mask:255.255.255.224
~          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
~          RX packets:55893 errors:0 dropped:0 overruns:0 frame:0
~          TX packets:33735 errors:0 dropped:0 overruns:0 carrier:0
~          collisions:0 txqueuelen:1000
~          RX bytes:68567997 (65.3 Mb)  TX bytes:4945109 (4.7 Mb)
~          Interrupt:18 Base address:0x8800

lo        Link encap:Local Loopback
~          inet addr:127.0.0.1  Mask:255.0.0.0
~          UP LOOPBACK RUNNING  MTU:16436  Metric:1
~          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
~          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
~          collisions:0 txqueuelen:0
~          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

# lsmod
Module                  Size  Used by
savagefb               18436  1
8139too                18304  0
mii                     3008  1 8139too
rtc                     8660  0
nfs                    79276  0
lockd                  41416  1 nfs
sunrpc                100540  2 nfs,lockd
sbp2                   15848  0
ohci1394               25456  0
ieee1394               55416  2 sbp2,ohci1394
sl811_hcd               8960  0
usb_storage            55456  0
usbhid                 31488  0

~    Here is an output of the "top" command showing current executions.
The machine was recently rebooted after a recompilation of the kernel
to r8, and a subsequent reboot to check it out. Currently the machine
is in the process of installing/compiling KDE. It's been doing so for
nearly the entire uptime.

# top -bcn 1
top - 23:46:56 up 1 day,  2:13,  6 users,  load average: 1.22, 1.16, 1.11
Tasks:  74 total,   2 running,  72 sleeping,   0 stopped,   0 zombie
Cpu(s): 36.3% us, 16.9% sy,  0.0% ni, 46.6% id,  0.2% wa,  0.0% hi,
0.0% si
Mem:    255212k total,   203404k used,    51808k free,       60k buffers
Swap:   771068k total,      236k used,   770832k free,   112140k cached

~  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
32617 root      25   0 54460  44m 5592 R   98 18.0   0:12.77
/usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1plus -quiet -I. -I. -I
10310 root      17   0  2152 1144  852 S    9  0.4  64:03.34 top
32637 root      15   0  2148 1016  760 R    6  0.4   0:00.09 top -bcn 1
~    1 root      16   0  1520  540  468 S    0  0.2   0:04.76 init [3]
~    2 root      RT   0     0    0    0 S    0  0.0   0:11.62
[migration/0]
~    3 root      34  19     0    0    0 S    0  0.0   0:00.20
[ksoftirqd/0]
~    4 root      RT   0     0    0    0 S    0  0.0   0:00.00 [watchdog/0]
~    5 root      RT   0     0    0    0 S    0  0.0   0:14.01
[migration/1]
~    6 root      34  19     0    0    0 S    0  0.0   0:00.14
[ksoftirqd/1]
~    7 root      RT   0     0    0    0 S    0  0.0   0:00.00 [watchdog/1]
~    8 root      10  -5     0    0    0 S    0  0.0   0:01.29 [events/0]
~    9 root      10  -5     0    0    0 S    0  0.0   0:00.95 [events/1]
~   10 root      10  -5     0    0    0 S    0  0.0   0:00.03 [khelper]
~   11 root      10  -5     0    0    0 S    0  0.0   0:00.00 [kthread]
~   14 root      10  -5     0    0    0 S    0  0.0   0:00.05 [kblockd/0]
~   15 root      10  -5     0    0    0 S    0  0.0   0:00.14 [kblockd/1]
~   16 root      10  -5     0    0    0 S    0  0.0   0:00.03 [kseriod]
~   19 root      10  -5     0    0    0 S    0  0.0   0:00.00 [khubd]
~   88 root      15   0     0    0    0 S    0  0.0   0:06.63 [pdflush]
~   89 root      15   0     0    0    0 S    0  0.0   0:31.10 [pdflush]
~   90 root      15   0     0    0    0 S    0  0.0   0:04.00 [kswapd0]
~   91 root      11  -5     0    0    0 S    0  0.0   0:00.00 [aio/0]
~   92 root      11  -5     0    0    0 S    0  0.0   0:00.00 [aio/1]
~   93 root      11  -5     0    0    0 S    0  0.0   0:00.00 [jfsIO]
~   94 root      11  -5     0    0    0 S    0  0.0   0:00.00 [jfsCommit]
~   95 root      11  -5     0    0    0 S    0  0.0   0:00.00 [jfsCommit]
~   96 root      11  -5     0    0    0 S    0  0.0   0:00.00 [jfsSync]
~   97 root      10  -5     0    0    0 S    0  0.0   0:05.61 [xfslogd/0]
~   98 root      10  -5     0    0    0 S    0  0.0   0:06.10 [xfslogd/1]
~   99 root      10  -5     0    0    0 S    0  0.0   0:01.05 [xfsdatad/0]
~  100 root      10  -5     0    0    0 S    0  0.0   0:00.85 [xfsdatad/1]
~  194 root      11  -5     0    0    0 S    0  0.0   0:00.00 [kpsmoused]
~  259 root      11  -5     0    0    0 S    0  0.0   0:00.00 [scsi_eh_0]
~  347 root      15   0     0    0    0 S    0  0.0   0:00.00 [kirqd]
~ 1249 root      15   0     0    0    0 S    0  0.0   0:00.01 [khpsbpkt]
~ 1314 root      15   0     0    0    0 S    0  0.0   0:00.00
[knodemgrd_0]
~ 1636 root      10  -5     0    0    0 S    0  0.0   0:00.45 [xfsbufd]
~ 1637 root      10  -5     0    0    0 S    0  0.0   0:02.22 [xfssyncd]
~ 2762 root      11  -4  1740  556  356 S    0  0.2   0:02.77
/sbin/udevd --daemon
~ 9844 root      15   0  1752  560  392 S    0  0.2   0:00.55
/usr/sbin/syslog-ng
~ 9917 root      16   0  1504  376  308 S    0  0.1   0:01.55
/sbin/irqbalance
10131 root      16   0  4168 1064  752 S    0  0.4   0:00.01
/usr/sbin/sshd
10203 root      16   0  1764  676  548 S    0  0.3   0:00.61
/usr/sbin/cron
10280 root      16   0  2332 1144  888 S    0  0.4   0:00.08 /bin/login --
10281 root      16   0  2332 1144  888 S    0  0.4   0:00.08 /bin/login --
10282 root      16   0  2332 1144  888 S    0  0.4   0:00.05 /bin/login --
10283 root      16   0  2332 1152  892 S    0  0.5   0:00.07 /bin/login --
10284 root      16   0  2328 1140  888 S    0  0.4   0:00.06 /bin/login --
10285 root      17   0  1552  616  532 S    0  0.2   0:00.02
/sbin/agetty 38400 tty6 linux
10296 root      15   0  2612 1572 1248 S    0  0.6   0:00.12 -bash
10307 root      16   0  2608 1540 1228 S    0  0.6   0:00.06 -bash
10311 root      15   0  2612 1564 1248 S    0  0.6   0:00.09 -bash
10321 root      16   0 12660  10m 2368 S    0  4.1   6:02.72
/usr/bin/python -O /usr/bin/emerge kde
30464 root      19   0  2416 1096  920 S    0  0.4   1:02.03 /bin/bash
./monitorIrqBalance.bash
30670 root      16   0  2744 1592 1260 S    0  0.6   0:01.18 -bash
~ 9870 root      15   0  2608 1572 1252 S    0  0.6   0:00.73 -bash
~ 6066 root      16   0  1564  452  348 S    0  0.2   0:00.03
[kdepim-3.5.2-r2] sandbox /usr/lib/portage/bin/ebuild.sh compile
~ 6067 root      19   0  5232 3628 1020 S    0  1.4   0:03.80 /bin/bash
/usr/lib/portage/bin/ebuild.sh compile
15292 root      21   0  2580 1340  672 S    0  0.5   0:00.13 make
15294 root      24   0  2584 1376  692 S    0  0.5   0:00.10 make
all-recursive
15295 root      16   0  2968 1472  952 S    0  0.6   0:00.10 /bin/sh
- -c failcom='exit 1'; \?for f in x $MAKEFLAGS; do \?  case
~  703 root      15   0  7120 2272 1796 S    0  0.9   0:04.55 sshd:
root@pts/0
~  715 root      15   0  2736 1588 1260 S    0  0.6   0:01.02 -bash
15337 root      15   0  1528  456  380 S    0  0.2   0:00.03 tail -f
/var/log/emerge.log
18675 root      16   0  2968  940  420 S    0  0.4   0:00.01 /bin/sh
- -c failcom='exit 1'; \?for f in x $MAKEFLAGS; do \?  case
18676 root      21   0  2712 1564  692 S    0  0.6   0:00.21 make all
18677 root      23   0  2972 1472  952 S    0  0.6   0:00.03 /bin/sh
- -c failcom='exit 1'; \?for f in x $MAKEFLAGS; do \?  case
18683 root      23   0  2972  940  420 S    0  0.4   0:00.00 /bin/sh
- -c failcom='exit 1'; \?for f in x $MAKEFLAGS; do \?  case
18684 root      18   0  3092 1920  692 S    0  0.8   0:01.36 make all-am
19746 root      10  -5     0    0    0 S    0  0.0   0:00.00 [kjournald]
32414 root      25   0  3756 2208 1000 S    0  0.9   0:00.85 /bin/sh
../libtool --silent --tag=CXX --mode=compile i686-pc-linux
32616 root      25   0  2180  944  500 S    0  0.4   0:00.04
/usr/i686-pc-linux-gnu/gcc-bin/4.1.1/i686-pc-linux-gnu-g++ -DHAVE_
32618 root      25   0  3216 1356  736 S    0  0.5   0:00.03
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu
32636 root      19   0  1500  392  336 S    0  0.2   0:00.00 sleep 4





On Monday 06 November 2006 19:52, reader@newsguy.com wrote:

|> John Blinka <jblinka@neo.rr.com> writes:
|
|>>> I have a very old Dell P150ST laptop that I try to maintain
|>>> Gentoo on. Every time I boot it, it complains "ERROR: cannot
|>>> start ntp-client as net.eth0 could not be started".
|
|>
|> One way that will probably work is to start ntp-client from
|> /etc/conf.d/local-start
|>
|> local-start is the very last thing called during a bootup so if
|> timing is the problem this would be a way to skirt around it.
|>
|> Just put whatever commands start ntp-client in
|> /etc/conf.d/local-start and see if it works.


Actually I have this in /etc/conf.d/net:

postup() {
~    [...]

~    /etc/init.d/ntp-client start >> /var/log/net.log
~    return 0
}

postdown() {
~    [...]

~    /etc/init.d/ntp-client stop >> /var/log/net.log
~    return 0
}

- --
Bo Andresen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFFUFi9fWQlBE75UIgRAljDAJ4uOuMMej54p/VSny5Ka02/XJsf5gCfUzLh
5d9hQnmhtRZ6f+WpMpIRxHs=
=vd+h
-----END PGP SIGNATURE-----


[-- Attachment #2: Type: text/html, Size: 45188 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-07 14:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-07  9:58 [gentoo-user] NTP: ntp-client doesn't start Christopher Kern
2006-11-07 14:53 ` PaulNM

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox