1
0
mirror of https://github.com/rancher/os.git synced 2025-09-19 00:59:53 +00:00
Files
os/images/01-base/start_ntp.sh
Sven Dowideit 1a786fdc90 Merge pull request #1997 from SvenDowideit/fix-ntpd-for-large-time-differences
Start ntpd using a script and -gq first
(cherry picked from commit 6dc7faf9b2)
2017-07-31 10:49:12 +00:00

7 lines
146 B
Bash
Executable File

#!/bin/sh
set -ex
echo "starting in one shot mode to fix large time differences"
ntpd -gq
echo "starting long running nptd"
exec ntpd --nofork -g