1
0
mirror of https://github.com/rancher/os.git synced 2025-07-04 02:26:13 +00:00
os/images/01-base/usr/bin/start_ntp.sh
niusmallnan b32e8e37d2 Refactoring each os image
More reasonable use of COPY, easy to maintain
2018-12-03 16:13:50 +08: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