Skip to content

date.conf

Calin Crisan edited this page May 5, 2022 · 6 revisions

File Location And Role

The file can be found at /data/etc/date.conf. It can be provisioned using /boot/date.conf and uses /etc/date.conf as a default.

The file contains settings that control how the system time is updated.

File Format

This is a simple shell script that should contain only NAME="value" lines. The file is sourced by the date init script.

Available Variables

DATE_TIMEOUT

Determines the timeout, in seconds, used to wait for a response from the date/time server, when synchronizing the system time. Defaults to 10.

DATE_METHOD

Determines the method (protocol) used to synchronize the system time. Possible values are ntp, sntp and http. Defaults to sntp.

DATE_HOST

Sets the HTTP server (and optionally port) to use when date_method is set to http. Defaults to google.com:80.

DATE_INTERVAL

Sets the interval of time, in seconds, at which the system time will be updated, when date_method is set to http. Defaults to 900.

DATE_NTP_SERVER

Sets the NTP server to use when date_method is set to ntp. Defaults to pool.ntp.org.

Clone this wiki locally