Files
Programming-Contests/files/lockdown/wait-for-time.service
T
2026-10-15 20:44:05 -03:00

15 lines
403 B
Desktop File

[Unit]
Description=Wait for the clock before the desktop starts (at most 30 seconds)
After=chrony.service firewall.service contest-dns.service contest-proxy.service
Wants=chrony.service
Before=display-manager.service
[Service]
Type=oneshot
# Three checks 10 seconds apart, then the desktop starts anyway
ExecStart=-/usr/bin/chronyc waitsync 3 1
TimeoutStartSec=45
[Install]
WantedBy=multi-user.target