Talk:Network Time Protocol daemon

From ArchWiki
Revision as of 10:28, 23 March 2014 by Progandy (talk | contribs) (Synchronize once per boot)
Jump to navigation Jump to search

Unknown command

In Network_Time_Protocol_daemon#Check_that_the_daemon_is_working_correctly, the given command doesn't work and doesn't exist anymore in the man page:

$ ntpq -p

Creak (talk) 22:30, 19 March 2014 (UTC)

I have found it there:
-p, --peers
    Print a list of the peers.  This option must not appear in combination  with  any  of
    the following options: interactive.

    Print  a  list  of the peers known to the server as well as a summary of their state.
    This is equivalent to the 'peers' interactive command.
Have you looked into the right man page?
-- Lahwaacz (talk) 23:20, 19 March 2014 (UTC)

Synchronize once per boot

This doesn't make any sense to me: Note: A systemd unit of the type oneshot executes once only. Hence the ntpd -q option should not be used in this case.

Isn't "-q, --quit Set the time and quit." exactly what we want to do? The systemd service type just says that the daemon should not be restarted after it has finished.

Exactly. the oneshot type requires that the process stops by itself. systemd waits for it too exit and then marks the unit as successful. "-q" is really required here.
Progandy (talk) 10:28, 23 March 2014 (UTC)