core-agent-linux/vm-systemd/qubes-sync-time.timer
Marta Marczykowska-Górecka f55412cd1e
clock synchronization rewrite
clock synchronization mechanism rewritten to use systemd-timesync instead of NtpDate; at the moment, requires:
- modifying /etc/qubes-rpc/policy/qubes.GetDate to redirect GetDate to designated clockvm
- enabling clocksync service in clockvm ( qvm-features clockvm-name service/clocksync true )

Works as specified in issue listed below, except for:
- each VM synces with clockvm after boot and every 6h
- clockvm synces time with the Internet using systemd-timesync
- dom0 synces itself with clockvm every 1h (using cron)

fixes QubesOS/qubes-issues#1230
2017-07-06 23:37:26 +02:00

10 lines
144 B
SYSTEMD

[Unit]
Description=Update system time each 6h
ConditionPathExists=!/var/run/qubes-service/clocksync
[Timer]
OnBootSec=10s
OnUnitActiveSec=6h