[ntp:questions] ntpd -n?

Ronan Flood usenet at umbral.org.uk
Tue Jan 15 14:45:29 UTC 2008


Tom Smith <smith at cag.zko.hp.com> wrote:

> I'm wondering about the function/purpose of the "-n" option
> for ntpd. I've found it in some Linux ntpd startup scripts
> and I'm wondering if it is really intended to be there.

Required for it to run under daemontools control, I think.

> My recollection is that both "-n" and "-N" first appeared
> in the late runup to 4.1 and that "-n [prio]" originally set
> the priority of ntpd. I also recall that this was later changed
> to "-N [prio]" and then just "-N", but my recollection is
> a little fuzzy.

In 4.0.99k, -n means don't fork.

> "-n" is now documented as "Don't fork". I'm not sure I know
> exactly what that means, but more importantly, I'm wondering

Stay in the foreground, don't become a background daemon.

> if the startup scripts that are using it are actually intending
> to raise the priority of ntpd and should now be using "-N".

Hmm.

-- 
Ronan Flood <usenet at umbral.org.uk>




More information about the questions mailing list