6 Commits

Author SHA1 Message Date
Ami Fischman 294c93fa17 cmd/ntp: preserve system time in /perm across reboots (#359)
Why? Reduce the wall time during which the system believes it's 1970.
Makes syslog timestamps more sensible.
2026-01-23 10:40:04 +01:00
Berk D. Demir 7acb85f429 ntp: Allow alternative NTP servers as arguments (#244)
When the gokrazy deployment doesn't have internet access and the network
lacks NTP traffic re-routing to the local time servers, instances may
either have downright wrong clock (e.g. Raspberry Pi with no RTC) or
experience divergence due to drift.

This add the ability to override the default NTP Pool Vendor Zone for
gokrazy with servers supplied as command line arguments.

e.g.
```
    "PackageConfig": {
        "github.com/gokrazy/gokrazy/cmd/ntp": {
            "CommandLineFlags": [
                "time1.local",
                "time2.local",
                "10.1.2.123"
            ]
        }
    }
```
2024-01-18 08:20:56 +01:00
Michael Stapelberg fb63ef71df ntp: remove go1.9 stubs, we are at go1.19 2023-01-15 15:24:43 +01:00
Michael Stapelberg 9250323c5f use Go 1.17 in GitHub Actions 2021-08-18 09:57:24 +02:00
Michael Stapelberg 6c059494af ntp: set real-time clock (hwclock) if present 2018-06-13 23:51:31 +02:00
Michael Stapelberg 3ed1e381b5 ntp: drop privileges to nobody/nogroup, retain CAP_SYS_TIME 2017-09-03 22:21:00 +02:00