| Summary: | djb clockspeed constantly restarting & /var/lib/clockspeed/atto file missing | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | J Toll <j-gentoo> |
| Component: | Current packages | Assignee: | SpanKY <vapier> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
J Toll
2005-05-13 10:02:23 UTC
works fine on my system: clockspeed & rm -f /var/lib/clockspeed/atto sntpclock 212.204.235.157 > /var/lib/clockspeed/adjust sleep 5 sntpclock 212.204.235.157 > /var/lib/clockspeed/adjust ls -l /var/lib/clockspeed/atto -rw-r--r-- 1 root root 16 May 14 14:27 /var/lib/clockspeed/atto I tried doing exactly what you did and it didn't work for me. Here's the ouput: [root /var/lib/clockspeed]# ls -la total 16 drwxr-xr-x 2 root root 4096 May 10 09:52 ./ drwxr-xr-x 16 root root 4096 May 4 11:05 ../ -rw-r--r-- 1 root root 16 May 13 10:46 adjust -rw-r--r-- 1 root root 176 May 10 09:50 leapsecs.dat [root /var/lib/clockspeed]# clockspeed & [1] 19193 [root /var/lib/clockspeed]# sntpclock 212.204.235.157 > /var/lib/clockspeed/adjust [1]+ Exit 1 clockspeed [root /var/lib/clockspeed]# sleep 5 [root /var/lib/clockspeed]# sntpclock 212.204.235.157 > /var/lib/clockspeed/adjust [root /var/lib/clockspeed]# ls -la total 16 drwxr-xr-x 2 root root 4096 May 10 09:52 ./ drwxr-xr-x 16 root root 4096 May 4 11:05 ../ -rw-r--r-- 1 root root 16 May 14 20:07 adjust -rw-r--r-- 1 root root 176 May 10 09:50 leapsecs.dat [root /var/lib/clockspeed]# It simply does not work on my machine and I have no idea why. I've recompiled it twice now hoping that something might change, no luck. I can't get it to create an atto file. J Just an update, I was able to get clockspeed working and get an atto file created. Here is what I did: 1) I completely uninstalled everything related to clockspeed 2) I added the "debug" USE flag to /etc/portage/package.use 3) I emerged clockspeed 4) I followed your instructions above and it worked I don't think compiling with the debug USE flag actually did anything to make it work, but I'm not sure. However, there is one clear thing that is different this time, the /var/lib/clockspeed/adjust file is not a "real" file. [root /var/lib/clockspeed]# ls -l total 8 prw------- 1 root root 0 May 17 10:23 adjust| -rw-r--r-- 1 root root 16 May 17 10:23 atto -rw-r--r-- 1 root root 176 May 17 10:04 leapsecs.dat I think there was one, or possibly two problems with my clockspeed setup and they both revolve around the adjust file. With previous attempts at starting clockspeed, the adjust file was an actual file with a file size rather than a named pipe. It is now clear that that should not be the case. So I'm not sure if clockspeed was crashing and that caused the command sntpclock 1.2.3.4 > adjust to create an actual file rather than a named pipe or if adjust being an actual file was causing clockspeed to crash, and so on in a circle. Either way, clockspeed needs to be running, so that it creates the adjust file and the atto file. So I guess this is now resolved for me. Thanks. J |