Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.protocols.time.ntp > #164276

Re: ntpd does not start daemon control: got EOF

From "Cy Schubert" <Cy.Schubert@cschubert.com>
Newsgroups comp.protocols.time.ntp
Subject Re: ntpd does not start daemon control: got EOF
Date 2026-04-27 15:13 +0000
Organization Taughannock Networks, Trumansburg NY
Message-ID <20260427151055.E6833381@slippy.cwsent.com> (permalink)
References (3 earlier) <10s8hv2$38nht$1@paganini.bofh.team> <10s8lfs$1n3e3$16@dont-email.me> <10sb1b9$3j4cj$3@paganini.bofh.team> <8d050e53-2600-4f2d-a504-15780b0d53cb@ntp.org> <f2767d42-f578-4553-9e8a-d1e2d2c2e151@ntp.org>

Show all headers | View raw


In message <c932db69-7d5c-401e-aea1-83295f3e66ad@dorfdsl.de>, Marco Moock 
write
s:
> Am 25.04.26 um 07:23 schrieb Cy Schubert:
> > In message <10sc8ha$3r263$1@paganini.bofh.team>, Marco Moock writes:
> >> Am 23.04.26 um 00:03 schrieb Harlan Stenn via questions Mailing List:
> >>> On 4/22/2026 10:43 AM, Marco Moock wrote:
> >>>> Am 21.04.26 um 22:08 schrieb Marco Moock:
> >>>>> When I try to start the daemon via the service command. This executes
> >>>>> the startup script in FreeBSD.
> >>>>
> >>>> Another thing I would like to let you know is that I have monit
> >>>> running that is configured to start ntpd if it is currently not
> >>>> running. Depending on which will be started first and how race
> >>>> conditions are handled, this might be part of the problem.
> >>>
> >>> Have you looked at the 'ntp-wait' script as a means to make sure ntpd is
> >>> running and the clock is stable before starting a time-dependent subsyste
> m?
> >>
> >> Not yet, but for my understanding such tests belong to the start/restart
> >> operations of the service scripts. Maybe the FreeBSD people can give
> >> more information about this.
> > 
> > I'd like to try to get a fuller understanding of the problem.
> > 
> > Is it correct to understand the problem began after an upgrade from FreeBSD
> > 14 to FreeBSD 15?
>
> I assume this was just a correlation I noticed. I do not think this is 
> the cause. I also only updates from 15 p5 to p6, no 14 involved.
>
> > Was monit also used to start ntpd on FreeBSD 14?
>
> This reboot was the first after I configured ntpd.
> I assume that both the init system and monit run service ntpd start at 
> the same time. I also have issues with sendmail in that case.

As sendmail is also similarly affected, this is not an ntp issue. As the 
services start without monit, there may be a monit issue when run under 
FreeBSD 15+.

The issue with ntpd is that it forks a subprocess, with a pipe between both 
processes. The child process write "R\n" to the pipe. If the parent does 
not read two bytes it exits with an error. Just a guess here that monit 
might have its fingers in the pipe.

Also as this also affects sendmail under monit it's suggested a FreeBSD PR 
(bugzilla bug) be opened WRT monit. Let's have the monit maintainer look at 
it first.

>
> Is my assumption right that the service command does not check if 
> another service command ist running at the same time?

It does (within /etc/rc.subr).

>
> If so, I assume this is the cause of the problem.

No, your assumption is incorrect. This smells of a monit issue.

>
> > Is mac_ntpd in use? Was it also used on FreeBSD 14?
>
> security.mac.ntpd.uid: 123
> security.mac.ntpd.enabled: 1
>
> I haven't changed anything here.
>
>
> -- 
> Gruß
> Marco
> Muell und Spam bitte an abfalleimer2000@stinkedores.dorfdsl.de


-- 
Cheers,
Cy Schubert <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  https://FreeBSD.org
NTP:           <cy@nwtime.org>    Web:  https://nwtime.org

			e**(i*pi)+1=0

Back to comp.protocols.time.ntp | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

ntpd does not start daemon control: got EOF Marco Moock <mm@dorfdsl.de> - 2026-04-21 21:08 +0200
  Re: ntpd does not start daemon control: got EOF "Harlan Stenn via questions Mailing List" <questions@lists.ntp.org> - 2026-04-21 19:58 +0000
    Re: ntpd does not start daemon control: got EOF Marco Moock <mm@dorfdsl.de> - 2026-04-21 22:08 +0200
      Re: ntpd does not start daemon control: got EOF "Dave Hart via questions Mailing List" <questions@lists.ntp.org> - 2026-04-21 20:58 +0000
      Re: ntpd does not start daemon control: got EOF Marco Moock <mm@dorfdsl.de> - 2026-04-22 19:43 +0200
        Re: ntpd does not start daemon control: got EOF "Dave Hart" <davehart@gmail.com> - 2026-04-27 19:43 +0000
          Re: ntpd does not start daemon control: got EOF "Cy Schubert" <Cy.Schubert@cschubert.com> - 2026-04-27 20:03 +0000
        Re: ntpd does not start daemon control: got EOF "Harlan Stenn via questions Mailing List" <questions@lists.ntp.org> - 2026-04-27 21:38 +0000
          Re: ntpd does not start daemon control: got EOF "Cy Schubert" <Cy.Schubert@cschubert.com> - 2026-04-28 04:38 +0000
      Re: ntpd does not start daemon control: got EOF "Harlan Stenn via questions Mailing List" <questions@lists.ntp.org> - 2026-04-22 22:03 +0000
        Re: ntpd does not start daemon control: got EOF Marco Moock <mm@dorfdsl.de> - 2026-04-23 06:51 +0200
          Re: ntpd does not start daemon control: got EOF "Cy Schubert" <Cy.Schubert@cschubert.com> - 2026-04-25 05:28 +0000
          Re: ntpd does not start daemon control: got EOF "Harlan Stenn via questions Mailing List" <questions@lists.ntp.org> - 2026-04-28 00:08 +0000
      Re: ntpd does not start daemon control: got EOF "Harlan Stenn via questions Mailing List" <questions@lists.ntp.org> - 2026-04-22 22:13 +0000
    Re: ntpd does not start daemon control: got EOF "Harlan Stenn via questions Mailing List" <questions@lists.ntp.org> - 2026-04-21 20:43 +0000
      Re: ntpd does not start daemon control: got EOF Marco Moock <mm@dorfdsl.de> - 2026-04-22 05:25 +0200
    Re: ntpd does not start daemon control: got EOF "Harlan Stenn via questions Mailing List" <questions@lists.ntp.org> - 2026-04-21 21:03 +0000
      Re: ntpd does not start daemon control: got EOF "Alexander Ziaee" <ziaee@FreeBSD.org> - 2026-04-22 10:03 +0000
        Re: ntpd does not start daemon control: got EOF Marco Moock <mm@dorfdsl.de> - 2026-04-22 12:37 +0200
          Re: ntpd does not start daemon control: got EOF "Alexander Ziaee" <ziaee@FreeBSD.org> - 2026-04-22 14:33 +0000
            Re: ntpd does not start daemon control: got EOF "Cy Schubert" <Cy.Schubert@cschubert.com> - 2026-04-22 14:58 +0000
              Re: ntpd does not start daemon control: got EOF "Marco Moock" <mm@dorfdsl.de> - 2026-04-22 16:18 +0000
    Re: ntpd does not start daemon control: got EOF "Cy Schubert" <Cy.Schubert@cschubert.com> - 2026-04-27 15:13 +0000
      Re: ntpd does not start daemon control: got EOF "Marco Moock" <mm@dorfdsl.de> - 2026-04-27 16:13 +0000
      Re: ntpd does not start daemon control: got EOF "Cy Schubert" <Cy.Schubert@cschubert.com> - 2026-04-28 04:33 +0000
  Re: ntpd does not start daemon control: got EOF "Dave Hart" <davehart@gmail.com> - 2026-04-22 18:33 +0000
    Re: ntpd does not start daemon control: got EOF Marco Moock <mm@dorfdsl.de> - 2026-04-22 20:54 +0200
      Re: ntpd does not start daemon control: got EOF "Cy Schubert" <Cy.Schubert@cschubert.com> - 2026-04-23 04:13 +0000
  Re: ntpd does not start daemon control: got EOF "Marco Moock" <mm@dorfdsl.de> - 2026-04-25 09:38 +0000
  Re: ntpd does not start daemon control: got EOF "Ralph Blach" <chip.from.nc@gmail.com> - 2026-04-27 20:08 +0000
  Re: ntpd does not start daemon control: got EOF "Cy Schubert" <Cy.Schubert@cschubert.com> - 2026-04-27 23:38 +0000

csiph-web