]>
Commit | Line | Data |
---|---|---|
164c0d73 MT |
1 | [Unit] |
2 | Description=Wait for chrony to synchronize system clock | |
3 | After=chronyd.service | |
4 | Requires=chronyd.service | |
5 | Before=time-sync.target | |
6 | Wants=time-sync.target | |
7 | ||
8 | [Service] | |
9 | Type=oneshot | |
10 | # Wait up to ~10 minutes for chronyd to synchronize and the remaining | |
11 | # clock correction to be less than 0.1 seconds | |
12 | ExecStart=/usr/bin/chronyc waitsync 60 0.1 | |
13 | RemainAfterExit=yes | |
14 | ||
15 | [Install] | |
16 | WantedBy=multi-user.target |