On Sat, 2018-11-17 23:09:50 -0600, Richard Laager <[email protected]> wrote: > On 11/17/18 9:17 AM, Jan-Benedict Glaw wrote: > > In my LAN, I'm running a ntpsec instance which has pool servers > > configured. This (single) server is handed out via DHCP to client > > hosts. If there's ntpsec running on these clients, ntpsec won't make > > the single NTP server their peer. Instead, it remains in candidate > > state and time is not synced. > > I have "tos minclock 4 minsane 3" in the default config. That is what is > preventing this from working. > > In /etc/dhcp/dhclient-exit-hooks.d/ntpsec, change this line: > sed '/^[[:space:]]*\(server\|peer\|pool\)[[:space:]]/d' "$NTP_CONF" > to be: > sed '/^[[:space:]]*\(server\|peer\|pool|tos\)[[:space:]]/d' "$NTP_CONF" > > Can you confirm that fixes the problem? If so, I'll upload this fix.
Add another missing backslash (after "pool") and that works fine. Thanks a lot! Jan-Benedict --
signature.asc
Description: PGP signature

