On 7/3/17 10:45, Carlos E. R. wrote:
Hi,
On this laptop, when it had 13.1, I synced the clock by running an hourly cronjob:
/usr/sbin/rcntp ntptimeset
That does no longer work because the initd script does not exist. I copied that script from 13.1 and I'm trying to make ntptimeset work. It doesn't. I still have to investigate it more.
Meanwhile... What is the consensus now for a one shot time sync?
No, running the ntpd daemon is not an option here.
Hi Carlos, I use rdate and netdate. Here is the script I use (i named it nistime): #===================================== # Description: Set system time from network or atomic clock # Announce ourselves #nist1-nj.ustiming.org #nist1-ny.ustiming.org #ntp-nist.ldsbc.edu #0.asia.pool.ntp.org #rdate.directadmin.com NTPSRV=rdate.directadmin.com NTPROG=/usr/bin/rdate #NTPRPG=/usr/bin/netdate echo "nistime started - `date`" echo " " echo "Connecting to server $NTPSRV and setting new time..." $NTPROG -s $NTPSRV ERR=$? # set hardware clock also in case of reboot if [ $ERR -eq 0 ] then /usr/sbin/hwclock -w fi echo "Finished. ERR=$ERR" echo " " echo "nistime ended - `date`" #=========================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org