[pkg-ntp-maintainers] Bug#478655: Bug#478655: 'ntpdlockfile creation failed' on system boot
Kiko Piris
menorqui at pirispons.net
Wed Apr 30 12:27:18 UTC 2008
On 30/04/2008 at 14:04 +0200, Peter Eisentraut wrote:
> Please see bug #436029 for the reasons this change was made.
Ok, I see.
> There is no conflict, but if you run both at the same time, one has to wait.
> That is what you are seeing.
Looking it a bit closely I’ve found my problem:
in /etc/network/if-up.d/ntpdate
/usr/sbin/ntpdate-debian -s $OPTS 2>/dev/null
was failing and returning a non zero exit code, and thus
lockfile-remove $LOCKFILE
wasn’t executed (that script has a set -e at the beginning). That’s why
ntp initscript stalled later, because of the not removed lockfile.
Changing the previous line to
/usr/sbin/ntpdate-debian -s $OPTS 2>/dev/null || /bin/true
“solves” the problem for me, but I would guess that that does not solve
the race condition of bug #436029.
Thanks again.
--
Kiko
Private mail is preferred encrypted:
http://www.pirispons.net/pgpkey.html
More information about the pkg-ntp-maintainers
mailing list