[pkg-ntp-maintainers] Bug#461473: Bug#461473: /etc/init.d/ntp restart should fail if ntp daemon is not running
Rick Thomas
rbthomas55 at pobox.com
Sun Jan 20 05:13:25 UTC 2008
On Jan 18, 2008, at 5:17 PM, Peter Eisentraut wrote:
> Rick Thomas wrote:
>> In /etc/dhcp3/dhclient-enter-hooks.d/ntp it is
>> implicitly assumed that "restart" will fail if
>> the daemon is not already running -- unfortunately,
>> that's not true.
>
> This has been reworked in 1:4.2.4p4+dfsg-3. Please try that, and
> let us know
> if you find a problem there.
It seems to work OK in 1:4.2.4p4+dfsg-3 (at least in my limited test
environment -- I don't use dial-up, for example)
While looking over the code, I had a couple of thoughts...
1) Wouldn't it be a good idea to include the "dynamic" option in the
synthesized "server" lines inserted into ntp.conf.dhcp ?
2) There ought to be some way to keep a "server" line in ntp.conf
from getting deleted. E.g. for a stratum=0 time source. I suggest
the string "# sticky" appearing as a comment.
I've attached a patch file that implements both of these.
Enjoy!
Rick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 740 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-ntp-maintainers/attachments/20080120/f9d48e7c/attachment.obj
More information about the pkg-ntp-maintainers
mailing list