summaryrefslogtreecommitdiff
path: root/src/timesync
Commit message (Collapse)AuthorAge
* Constify ConfigTableItem tablesZbigniew Jędrzejewski-Szmek2014-07-15
|
* timesyncd: add sockaddr_pretty wrapperZbigniew Jędrzejewski-Szmek2014-07-15
|
* timesyncd: only listen to clock changes when connectedZbigniew Jędrzejewski-Szmek2014-07-15
| | | | | | | | | | | | | This reverts previous commit and applies a different fix. manager_clock_watch() callback calls manager_send_request() to kick off a resync. We can only do that when we're actually connected to something. It is not useful to setup the callback from manager_new(). Now the callback will be dropped in manager_connect() and requested in manager_begin(). https://bugs.freedesktop.org/show_bug.cgi?id=80932
* timesyncd: suppress resync at system time change when not connectedKay Sievers2014-07-15
| | | | | | | | | Jul 04 17:46:03 orchid systemd[1]: Starting Network Time Synchronization... Jul 04 17:46:03 orchid systemd[1]: Started Network Time Synchronization. Jul 04 17:46:22 orchid systemd-timesyncd[301]: System time changed. Resyncing. Jul 04 17:46:22 orchid systemd-timesyncd[301]: Assertion 'm->current_server_name' https://bugs.freedesktop.org/show_bug.cgi?id=80932
* resolved: make use of union in_addr_union in resolved, tooLennart Poettering2014-07-07
|
* timesyncd: split privilege dropping code out of timesyncd so that we can ↵Lennart Poettering2014-06-01
| | | | | | make use of it from other daemons too This is preparation to make networkd work as unpriviliged user.
* timesysnc: reword network watching messages, and move resolver errors to debugKay Sievers2014-05-25
|
* timesyncd: only update stamp file when we are synchronizedKay Sievers2014-05-24
| | | | | | | | Create initial stamp file with compiled-in time to prevent bootups with clocks in the future from storing invalid timestamps. At shutdown, only update the timestamp if we got an authoritative time to store.
* time-util: make sure USEC_PER_SEC and friends are actually of type usec_tLennart Poettering2014-05-22
|
* timesyncd: use STR_IN_SET()Kay Sievers2014-05-21
|
* timesyncd: fix english language typoLennart Poettering2014-05-21
|
* timesyncd: save clock to disk everytime we get an NTP fix, and bump clock at ↵Lennart Poettering2014-05-21
| | | | | | | | | | | | | | | | boot using this This is useful to make sure the system clock stays monotonic even on systems that lack an RTC. Also, why we are at it, also use the systemd release time for bumping the clock, since it's a slightly less bad than starting with jan 1st, 1970. This also moves timesyncd into the early bootphase, in order to make sure this initial bump is guaranteed to have finished by the time we start real daemons which might write to the file systemd and thus shouldn't leave 1970's timestamps all over the place...
* timesyncd: only attempt to connect when an address is configuredTom Gundersen2014-05-19
| | | | | For now, we accept both link-local and routable addresses, maybe we want to restrict ourselves to routable addresses only.
* fix spelling of privilegeNis Martensen2014-05-19
|
* timesyncd: make use of floating event sources for signal handlingLennart Poettering2014-05-18
|
* timesyncd: enable watchdog supportLennart Poettering2014-05-18
|
* timesyncd: run timesyncd as unpriviliged user "systemd-timesync" (but still ↵Lennart Poettering2014-05-18
| | | | with CAP_SYS_TIME)
* timesyncd: fix typo in commentKay Sievers2014-05-16
|
* timesyncd: fix error path return valueKay Sievers2014-05-15
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=78752
* timesyncd: read global operational state from networkdTom Gundersen2014-05-08
|
* timesyncd: only run when the system has a carrier on a network interfaceTom Gundersen2014-05-08
| | | | | As the operational state detection in sd-network is still too primitive, timesyncd will likely try to connect a bit early, so the first attempt will fail.
* timesyncd: shorten log messageKay Sievers2014-05-07
|
* timesyncd: hook up systemd-timesyncd with systemd-timedatedLennart Poettering2014-05-06
| | | | | | Later on we will probably remove support for controlling any other NTP implementations but systemd-timesyncd, but for now, let's keep things generic
* timesyncd: never accept NTP time from server that is older than systemd's ↵Lennart Poettering2014-05-06
| | | | release time
* timesyncd: read server settings from a configuration fileLennart Poettering2014-05-06
| | | | | Also, allow compiling in a default server list via a configure command line item.
* timesyncd: when an NTP server doesn't respond, proceed with the nextLennart Poettering2014-05-06
|
* list: make LIST_FIND_TAIL work for empty listsLennart Poettering2014-05-06
|
* timesyncd: keep order of NTP serversLennart Poettering2014-05-06
|
* timesyncd: make sure to reread /etc/resolv.conf when we try the next NTP serverLennart Poettering2014-05-06
|
* timesyncd: accept NTP version 3 responsesKay Sievers2014-05-06
|
* timesyncd: add a more servers by defaultLennart Poettering2014-05-06
|
* timesyncd: also try next server when sendto() failsLennart Poettering2014-05-06
|
* timesyncd: don't busy loop when we cannot connect to any serversLennart Poettering2014-05-06
|
* timesyncd: properly handle multiple configured NTP servers and multiplei IP ↵Lennart Poettering2014-05-06
| | | | addresses per server name
* timesyncd: lookup name server via sd-resolve, support IPv6, react to ↵Lennart Poettering2014-05-05
| | | | SIGINT/SITERM
* timesync: use safe_close() where possibleLennart Poettering2014-05-05
|
* timesync: always initialize structs when declaring them as far as possible ↵Lennart Poettering2014-05-05
| | | | with contsant values
* timesyncd: log drift value as signedKay Sievers2014-05-05
|
* timesyncd: log drift correctionKay Sievers2014-05-03
|
* timesyncd: use nanosecond modeKay Sievers2014-04-30
|
* timesyncd: remove debug codeKay Sievers2014-04-30
|
* timesyncd: limit debug values to millisecondsKay Sievers2014-04-29
|
* timesyncd: update log messageKay Sievers2014-04-29
|
* timesyncd: add unit and man pageKay Sievers2014-04-29
|
* rename timedate-sntp to timesyncKay Sievers2014-04-28