diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 18:43:21 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 18:43:21 +0000 |
commit | 104f986b0650b8f93540785d2bcf486905e49b62 (patch) | |
tree | 2b2ae5113d9b57425d4bb3f726e325316b87e00a /examples/chrony-wait.service | |
parent | Initial commit. (diff) | |
download | chrony-6c4737470db688877d0a4db6ad45be98a0e9efa0.tar.xz chrony-6c4737470db688877d0a4db6ad45be98a0e9efa0.zip |
Adding upstream version 3.4.upstream/3.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples/chrony-wait.service')
-rw-r--r-- | examples/chrony-wait.service | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/chrony-wait.service b/examples/chrony-wait.service new file mode 100644 index 0000000..0f5e2e7 --- /dev/null +++ b/examples/chrony-wait.service @@ -0,0 +1,18 @@ +[Unit] +Description=Wait for chrony to synchronize system clock +Documentation=man:chronyc(1) +After=chronyd.service +Requires=chronyd.service +Before=time-sync.target +Wants=time-sync.target + +[Service] +Type=oneshot +# Wait up to ~10 minutes for chronyd to synchronize and the remaining +# clock correction to be less than 0.1 seconds +ExecStart=/usr/bin/chronyc -h 127.0.0.1,::1 waitsync 600 0.1 0.0 1 +RemainAfterExit=yes +StandardOutput=null + +[Install] +WantedBy=multi-user.target |