I am using Alpine Linux on Raspberry Pi. The Pi does not have a hardware clock and over time Alpine’s clock drifts quite a bit.
To fix this I am using the ntp daemon. It can be installed and started with
rc-update add ntpd
service ntpd startTo sync one can use this command with admin rights:
chronyc makestepTo make this sync regularly, I have a cron job running this command at midnight every day.
Enter the editor with crontab -e and add this line
# min hour day month weekday command
0 0 * * * chronyc makestep
>> Home