start_ntp.sh 146 B

1234567
  1. #!/bin/sh
  2. set -ex
  3. echo "starting in one shot mode to fix large time differences"
  4. ntpd -gq
  5. echo "starting long running nptd"
  6. exec ntpd --nofork -g