Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| doc:uci:ntpclient [2011/09/18 21:15] – written_direcon | docs:guide-user:services:ntp:client [2021/08/02 19:44] (current) – update vgaetera | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Ntpclient | + | ====== Ntpclient |
| The '' | The '' | ||
| ===== Sections ===== | ===== Sections ===== | ||
| - | |||
| The configuration file consists of a section defining general daemon options, a section defining clock drift information, | The configuration file consists of a section defining general daemon options, a section defining clock drift information, | ||
| ==== Ntpclient ==== | ==== Ntpclient ==== | ||
| + | The '' | ||
| + | This is the default configuration for this section: | ||
| - | The '' | + | <code bash> |
| - | | '' | + | config ' |
| - | option ' | + | option ' |
| + | </ | ||
| The '' | The '' | ||
| Line 20: | Line 21: | ||
| ==== Drift ==== | ==== Drift ==== | ||
| - | + | The '' | |
| - | The '' | + | Please see the [[http:// |
| This is the default configuration for this section: | This is the default configuration for this section: | ||
| - | | '' | + | |
| - | option ' | + | <code bash> |
| + | config ' | ||
| + | option ' | ||
| + | </ | ||
| The '' | The '' | ||
| Line 32: | Line 36: | ||
| ===== Hosts ===== | ===== Hosts ===== | ||
| - | + | To receive time, at least one host must be configured through a '' | |
| - | To receive time, at least one host must be configured through a '' | + | OpenWrt will try the specified hosts in order, and use the first one that is responding to time requests. |
| + | OpenWrt uses the [[http:// | ||
| These are the default hosts: | These are the default hosts: | ||
| - | | '' | + | |
| + | <code bash> | ||
| + | config ' | ||
| option ' | option ' | ||
| option ' | option ' | ||
| Line 50: | Line 57: | ||
| config ' | config ' | ||
| option ' | option ' | ||
| - | option ' | + | option ' |
| + | </ | ||
| A '' | A '' | ||
| Line 58: | Line 66: | ||
| | '' | | '' | ||
| - | ===== Ntpclient | + | ===== Ntpclient |
| - | + | The ntpclient is started via the hotplug subsystem upon any network interface startup, see ''/ | |
| - | The ntpclient is started via the '' | + | The script starts the daemon in 4 phases: |
| - **preliminary test** - the script checks if the ntpclient is already running. | - **preliminary test** - the script checks if the ntpclient is already running. | ||
| - **drift** - the scripts sets the specified '' | - **drift** - the scripts sets the specified '' | ||
| Line 66: | Line 74: | ||
| - **operational phase** - the ntpclient is started with the first reachable '' | - **operational phase** - the ntpclient is started with the first reachable '' | ||
| - | ===== Ntpclient | + | ===== Ntpclient |
| + | All instances of the ntpclient are killed via the hotplug subsystem upon any network interface shutdown, see ''/ | ||
| - | All instances of the ntpclient are killed via the hotplug.d subsystem upon any network interface shutdown(!) (for the curious, see / | ||