I use my Pi as part of a home automation system, logging and carrying out events according to time. It is connected to a working internet connection, but let's say the power temporarily goes out and the Pi boots up faster than the router - is there a command line or Bash to run for example 5 mins later for the Pi (Raspbian Wheezy) to update the date from the time server again?


1 Answer 1


Run ntpd in terminal - it's not too heavy a load and ensures your Pi's time is bang on all the time, RTC is good if you have no internet but ntpd is easy if you do...

  • Thanks! "@reboot sudo ntp-wait" in cronfile works well for me. ntpd in terminal will also work, but not keep on trying if it fails. Apr 7, 2016 at 10:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.